How to load local (in app file system) images without delay ?!


#1

Hi,
I try create a small apps to play local music, and I get artwork form ID3 tag and save as file in app file system (Cordova File plugin), but in view this image render with delay.

I try save this artworks to SQLite as Base64 but with this same result :frowning:

Is there any way to show local images without delay ?!


#2

Now, in .run function i use something like that

angular.module('app', [])
.run(function() {
    for(var i = 0; i < ARRAY_WITH_ALL_IMAGES_PATH; i++) {
        (new Image()).src = ARRAY_WITH_ALL_IMAGES_PATH[i];
    }
});

but it’s kills the memory :frowning:


#3

This response is kind of late, and I’m not sure if you solved the issue, but try using ionic.ion.imageCacheFactory to prerender any image.