Revision: 49832
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 31, 2011 03:37 by pussard
Initial Code
(function(){
// if firefox 3.5+, hide content till load (or 3 seconds) to prevent FOUT
var d = document,
e = d.documentElement,
s = d.createElement('style'),
r = document.getElementsByTagName('script')[0];
if (e.style.MozTransform === '') { // gecko 1.9.1 inference
s.textContent = 'body { visibility: hidden }';
r.parentNode.insertBefore(s, r);
function f() {
s.parentNode && s.parentNode.removeChild(s);
}
addEventListener('load', f, false);
setTimeout(f, 3000);
}
}) ();
Initial URL
http://paulirish.com/2009/fighting-the-font-face-fout/
Initial Description
Initial Title
FOUT (Flash of Unstyled Text) prevention
Initial Tags
Initial Language
JavaScript