Add Window Load Event Without jQuery

Let’s say that you would like to trigger you code after the page is done loading. Easy, just use jQuery to attach a listener to the ready event (e.g. $(function() { ….}); OR $(document).ready(function() {…}) ). But what if jQuery isn’t loaded yet? Well, here is something that you can try.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

IMPORTANT! To be able to proceed, you need to solve the following simple math (so I know that you are a human) :-)

What is 2 + 15 ?
Please leave these two fields as-is: