From http://api.jquery.com/ready/