thinkpixellab / PxLoader

PxLoader is a simple JavasScript library for creating preloaders and resource downloaders for HTML5 apps.
http://thinkpixellab.com/pxloader
1.11k stars 173 forks source link

Question about loading assets #44

Closed astralscott closed 8 years ago

astralscott commented 8 years ago

If I preload some images, then insert html into the DOM later without using the returned image objects, will they be cached and load instantly?

joelfillmore commented 8 years ago

Yes, normally the browser won't request the same image again. However, it depends on the cache control headers for the image and the browser's cache policy.

astralscott commented 8 years ago

Thank you sir! :)