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?
Edit:
Jquery documentation says:
shortcut not recommended
That's my question, why is it not recommended? Should we ever use it in our projects?