jQuery and $(document).ready();

$(document).ready(function(){})

See: $(document).ready() for more explanation, including the shorthand of $().


This is the jQuery way of doing the window.addEventListener("DOMContentLoaded",function(){});