Created
March 27, 2010 21:00
-
-
Save mimetaur/346350 to your computer and use it in GitHub Desktop.
IE6 Flicker Fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ie6FlickerFix() { | |
try { | |
document.execCommand("BackgroundImageCache", false, true); | |
} catch(err) {} | |
} | |
var addLoadEvent = function(func) { | |
var oldonload = window.onload; | |
if (typeof window.onload != 'function') { | |
window.onload = func; | |
} else { | |
window.onload = function() { | |
if (oldonload) { | |
oldonload(); | |
} | |
func(); | |
}; | |
} | |
}; | |
addLoadEvent(ie6FlickerFix); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment