Skip to content

Instantly share code, notes, and snippets.

@jamiel
Created March 1, 2012 14:07
Show Gist options
  • Save jamiel/1950031 to your computer and use it in GitHub Desktop.
Save jamiel/1950031 to your computer and use it in GitHub Desktop.
New background image not loading after jQuery fadeOut / fadeIn
fadeIn rendering bug (background image)
---------------------------------------
I was experiencing an issue in Chrome and Internet Explorer where intermittently the
background image would fail to load after a a fadeIn. Narrowed this down to a rendering
issue rather than a logic error and was able to fix it by resetting the background image
after the fade like so:
$('#wrapper').css('background', $('#wrapper').css('background'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment