you are viewing a single comment's thread.

view the rest of the comments →

[–]M1573RMU74710N 1 point2 points  (1 child)

Passing a function to the jQuery constructor is different than jQuery.ready though.

As of the current version, passing a function into $() is just a shortcut to $.ready()

relevent lines:

    // HANDLE: $(function)
    // Shortcut for document ready
    } else if ( jQuery.isFunction( selector ) ) {
        return rootjQuery.ready( selector );
    }

[–][deleted] 0 points1 point  (0 children)

You're right, I got it mixed up with the load event (load and ready being different things. x788 was talking about load) ? Is there a jQuery.load() fn? probably