Is there any event that fires while the page is trying to load . I dont mean onload , which fires only after the page has been loaded. I want to use it for when the user is waiting for the new page to load
-
3No, but just executing some JS code will probably work.Luca Kiebel– Luca Kiebel2018-08-22 09:14:20 +00:00Commented Aug 22, 2018 at 9:14
-
The pickle here would be the definition of 'trying'. Do you mean trying to load the DOM? or downloading the actual page that contains the JavaScript?roberrrt-s– roberrrt-s2018-08-22 09:15:35 +00:00Commented Aug 22, 2018 at 9:15
-
I meant like a gif or something while the page transition occurs.Yes while trying to load the DOM.akshay kishore– akshay kishore2018-08-22 09:15:45 +00:00Commented Aug 22, 2018 at 9:15
Add a comment
|
2 Answers
There is no such event that you mention. For more information visit this page:
https://javascript.info/onload-ondomcontentloaded
I hope it helps ;)