Document Ready

jQuery Document Ready's function made easy

The Document Ready function

This is the traditional way to write the Document Ready function


$(document).ready(function (){
    // your code
});

The Shorthand

Save a few characters when writing the Document Ready function.


$(function (){
    // your code
});

Related Tools