- 1
How can i detect a loaded page
Please, i need to know how to stop a loader, when a page must have finished loading. I hope someone can help me 🙏.
4 odpowiedzi
+ 3
when a page have finished loading two events are fired: 'DOMContentLoaded' (document) and then 'onload/load' (window, document, body)... first is fired when DOM is ready (but all external ressources not necessarly loaded), second when all external ressources are loaded...
+ 1
read and try snippets from:
https://javascript.info/onload-ondomcontentloaded
0
visph Thanks a lot bro, i appreciate
0
visph But if you don't mind, can you make a little code snippet on it??