Here’s a helpful snippet that will preload images with CSS. Stops that annoying lag when using CSS to switch images and the image isn’t pre-loaded.
body:after {
display: none;
content: url("filename1.png") url("filename2.png");
}
Here’s a helpful snippet that will preload images with CSS. Stops that annoying lag when using CSS to switch images and the image isn’t pre-loaded.
body:after {
display: none;
content: url("filename1.png") url("filename2.png");
}