jQuery

Fade page

Works with:
FF3
Chrome
IE6
IE7
Opera
Safari

Description

Hide all of the page components when they are available and then fade in a page as soon as all of the components have loaded. Note: some text in IE may lose it's antialiasing effect when fading.

JavaScript

  1. $("body").children().ready(function() {
  2.     $("body").children().hide();
  3. });
  4.  
  5. $("body").ready(function() {
  6.     $("body").children().fadeIn(2000);
  7. });