Jump to content

Use images from cache in CSS


mdhdev
 Share

Recommended Posts

Is it possible to take an image from the cache and use it to set a css background?
I am currently setting the background of the page depending on the current level but there is a slight delay whilst the image loads up. If I can use the Phaser cache for this, that would be perfect.

Link to comment
Share on other sites

Any images in Phaser's cache have been downloaded by the browser so usually they should be in the browser's cache too.

Look in the "Network" pane of your browser's dev tools and you should be able to compare the 2 requests.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...