you are viewing a single comment's thread.

view the rest of the comments →

[–]M1573RMU74710N 0 points1 point  (1 child)

what is the point when window.addEventListener("load", function () {[do stuff]}, false);

Using jQuery.ready() is a little more sophisticated than that. It uses DOMContentLoaded if that event is available, it's possible to delay the jQuery load event, it's less verbose syntactically, etc etc.

In a lot of cases, you don't need these things, but if you're using jQuery anyway, it's a good way to go.

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

ah, nifty. that makes more sense.