Here’s a short one:
$(document).ready(function() { // or its shorter $(function() { }); // I'll wait for the DOM to load });
is not the same as
$(window).load(function() { // I'll wait for the content (like images) as well. });
So choose wisely.
Reporting live from Germany and such!
Here’s a short one:
$(document).ready(function() { // or its shorter $(function() { }); // I'll wait for the DOM to load });
is not the same as
$(window).load(function() { // I'll wait for the content (like images) as well. });
So choose wisely.