Last active
December 28, 2015 03:09
-
-
Save quawn/7432722 to your computer and use it in GitHub Desktop.
HTML: No-JS Image preloading
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ADD THIS TO XHTML --> | |
<div id="preloaded-images"> | |
<img src="http://perishablepress.com/image-01.png" width="1" height="1" alt="Image 01" /> | |
<img src="http://perishablepress.com/image-02.png" width="1" height="1" alt="Image 02" /> | |
<img src="http://perishablepress.com/image-03.png" width="1" height="1" alt="Image 03" /> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div#preloaded-images { | |
position: absolute; | |
overflow: hidden; | |
left: -9999px; | |
top: -9999px; | |
height: 1px; | |
width: 1px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment