preload :hover images

why don't browsers do this automatically? 💩
This commit is contained in:
jomo
2015-01-03 05:32:14 +01:00
parent 756ede7d83
commit f602665999
2 changed files with 62 additions and 0 deletions

View File

@@ -180,6 +180,16 @@ h4 {
margin-top: 50px;
}
img.preload {
/*
preload hover images
browsers don't load 0x0 images
*/
position: fixed;
top: -9999px;
left: -9999px;
}
.jumbotron img {
margin: 5px;
}