html - How to Preload Images without Javascript? -
There are some large images in my layout (comes with XML), but when the page loads and when I rollover It takes time to load that image.
Note: There are 5 images (not dynamic)
I want to preload any solution to javascript Do not want to use?
I am not using the hover menu or anything like this, but these images are product images and links text links is my issue ??
to
A less technical but useful technique that is only used for CSS After using CSS in your stylesheet, insert it under the body tag of your page: whenever the images are referenced in your pages, they will now be loaded with cache.
# preloaded images {width: 0 pixels; Height: 0 pixels; Display: Inline; Background image: URL (path / to / image1 page); Background-image: url (path / to / image page 2); Background-image: url (path / to / image3); Background-image: url (path / to / image4.png); Background-image: url (); }
Comments
Post a Comment