javascript - make the image load as quickly as possible when user hovers over the image -
I know that sprites will fix this problem, is there any better way?
Some browsers rotate the image until it is loaded. It is really worth note if the image is large or Traffic is slow.
Ideally, you want to use the spirits image , and when you hover, you want to give them space.
Pre-loaded images for dummy divisions like this -
#temp {background- Image: url (/ images / image1 .png); Background-image: url (/images/image2.png); Background-image: url (/images/image3.png); }
Comments
Post a Comment