Is it possible to preload/cache resource images when the app starts?


#1

Hi All,

As there are some background images and img elements in my app, I notice an obvious process of loading these images(event if a logo, and the images are in my app’s img folder) when switching states, it feels like an element is blank then filled with an image. I can understand this as rendering takes time but it’s really weird as an app. So I’m wondering if there is an approach to improve the experience.

Thanks


#2

Take a look at https://docs.angularjs.org/api/ng/directive/ngCloak.
Maybe this will solve your problem.