thinkpixellab / PxLoader

PxLoader is a simple JavasScript library for creating preloaders and resource downloaders for HTML5 apps.

Home Page:http://thinkpixellab.com/pxloader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about loading assets

astralscott opened this issue · comments

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?

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.

Thank you sir! :)