How to run Javascript code before document is completely loaded (using jQuery)
- by eliza sahoo
Hi all,
I am sahring atip with you all.Please add on to this discussion.
JQuery helps faster page load than javascript. JQuery functions are fired when the related elements are loaded, instead of complete pageload.
This is a common practice to call a javascript function when page is loaded like
window.onload = function(){ alert("Mindfire")…