Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7068711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:21:26+00:00 2026-05-28T05:21:26+00:00

I have some tabs for my website where the background-image changes when you click

  • 0

I have some tabs for my website where the background-image changes when you click on them.

However when I hover over the tabs the first time after the DOM has loaded, there’s a slight delay before the hover-image show, resulting in a jarring effect.

I don’t know how to troubleshoot this, any ideas? 🙂

Live example here: http://jsfiddle.net/timkl/fjupq/ – the delay is not as long on JSFiddle’s server – but it’s still there.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:21:27+00:00Added an answer on May 28, 2026 at 5:21 am

    The solution to this is to use sprites instead of separate images.

    • http://css-tricks.com/css-sprites/

    You use a single image, and instead of changing the background source on :hover, you simply change the background position. This way, the entire image is loaded in advance.

    For example, check out Stack Overflow’s sprite sheet:

    • http://cdn.sstatic.net/stackoverflow/img/sprites.png?v=4

    You don’t have to take it to this extreme, you can just have one image that has both the normal and :hover states, and move it to the left/right or up/down.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making some tabs and I want to have my own delegate for them
I have some tabs created with jQuery UI After I create a new tab
I have some jQuery tabs set up on the right of the page, however
I'm doing my first project with jquery: My site will have some tabs: 1.
I have some tabs using jQuery UI which work just fine, but I want
Suppose i have some tabs (e.g. jquery tab) and I want to dynamically load
I have created some rounded navigation tabs using CSS and am having trouble when
I have a php script that uses some css/javascript tabs, they work on my
I need some help sorting out a CSS issue with my website, I have
I have some tabs that are ajax powered. So everytime a tab is clicked

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.