Loading Images into View Background

Hey All,

I’ve been using Ionic for over a year now and my app design requires me to show background images on the view as a user slides it in from the right of the screen.

Now using Angular made this difficult because I found the digest cycle was too slow and hence you see a white flicker just before the page is rendered which is unacceptable. To fix this I needed to load the image using JQuery when the controller was created by UI-Router and have this update the image.

Also, I’m using base64 encoding from memory for the image as I found referencing the image by filename was also too slow, since it then had to be read from disk, whereas I could do this at an earlier stage and cache it in memory.

Do anyone else have experience with loading images on page load for backgrounds? I’d be interested in hearing what other do to solve these issues?