Executes a callback after window has loaded.
This isn't a simple window load event listening but
first makes a check if the window has already loaded.
If it has, the callback will immediately get executed,
otherwise, it will wait until the load event completes.
Executes a callback after window has loaded. This isn't a simple window load event listening but first makes a check if the window has already loaded. If it has, the callback will immediately get executed, otherwise, it will wait until the load event completes.