Posted By

loric on 01/07/10


Tagged

javascript textmate content hide unstyled


Versions (?)

FOUC Fix


 / Published in: Other
 

  1. var d = document, e = d.documentElement, s = d.createElement('style');
  2. if (e.style.MozTransform === ''){ // gecko 1.9.1 inference
  3. s.textContent = 'body{visibility:hidden}';
  4. e.firstChild.appendChild(s);
  5. function f(){ s.parentNode && s.parentNode.removeChild(s); }
  6. addEventListener('load',f,false);
  7. setTimeout(f,3000);
  8. }

Report this snippet  

You need to login to post a comment.