Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    how to load all images used by a page before the start of functionality in that page

    Hi,


    I saw a problem- in a simple animation I created of a spinning image, sometimes the image would be loaded and shown, while other times a blank space would be shown, for the same page. (in my app, the image starts spinning only after user clicks on it... ) What I also saw was that once the page was stored in browser cache, after that when I reloaded that page the image showed up correctly.

    So what I am thinking is, this looks to be a problem loading the image correctly...Hence my question is, is there some way to ensure that an image (or multiple images) have been correctly loaded into the browser, and only then start execution, otherwise display a message? Because I would not want critical images to not be shown.

    Regards,
    Arvind.
Working...
X