The css is pulling the image that allows me to swap images on hover.
My Problem is, on my first hover, image disappears. Second hover, image appears. And the following hovers, everything works fine.
Why and how to solve it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s because the first time you hover the browser has to request and download the new image from the server. This takes time and is the delay you see. Subsequent hovers work quickly because of browser caching.
You can, and should, avoid this by using CSS sprites.