Calls the specified function when all page scripts are loaded and processed. So it's processed after window.onLoad event, but before whenReady() event. If called after this event, the callback function is executed immediately.
Callback function to be executed when ready.
whenLoaded
Calls the specified function when all page scripts are loaded and processed. So it's processed after window.onLoad event, but before whenReady() event.
If called after this event, the callback function is executed immediately.