Page 1 of 1

How do I pre-install an image to localStorage and then retrieve it to use in CSS?

Posted: Mon Nov 19, 2012 5:28 am
by Agon Bina

I want to include an image to the app itself, so when someone downloads my app from the store, it will be in there, in localStorage I'm thinking.

The reason is because this image is about 850kb and I want to use it as a CSS background for the main page container. I am currently using the normal backgroud-image: url( ... ); command but I want to preload the image in the app files, and then somehow retrieve it to use as a css background image. This way it will appear much faster and make the loading speed faster.

Please let me know if this is possible :)


How do I pre-install an image to localStorage and then retrieve it to use in CSS?

Posted: Mon Nov 19, 2012 12:28 pm
by Maryna Brodina

Hello! I'm not aware how to do this. I'll ask our developer team.


How do I pre-install an image to localStorage and then retrieve it to use in CSS?

Posted: Mon Nov 19, 2012 2:13 pm
by Maryna Brodina