JQuery ready event and its shortcut
Posted
by Sarfraz
on Stack Overflow
See other posts from Stack Overflow
or by Sarfraz
Published on 2010-03-11T18:35:36Z
Indexed on
2010/03/11
18:39 UTC
Read the original article
Hit count: 162
Hello,
In most of the videos, I see expert JQuery developers writing complete code for the ready
event eg:
$(document).ready(function(){
//.....
});
rather than its shortcut:
$(function(){
//.....
});
Is there any particular down side to using shortcut method?
© Stack Overflow or respective owner