jquery document ready handler

Posted by user271619 on Stack Overflow See other posts from Stack Overflow or by user271619
Published on 2010-04-28T17:09:04Z Indexed on 2010/04/28 17:13 UTC
Read the original article Hit count: 301

Filed under:

Is there any difference between using:

$(document).ready(function(){

vs.

$(function(){

Does one of these work better than the other in some way, or is the first just a shorthand version of the first?

© Stack Overflow or respective owner

Related posts about jQuery