- 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 🙏.

12th Feb 2021, 11:25 PM
UZY-ANDREW
UZY-ANDREW - avatar
4 Respuestas
+ 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...
13th Feb 2021, 1:19 AM
visph
visph - avatar
13th Feb 2021, 11:33 AM
visph
visph - avatar
0
visph Thanks a lot bro, i appreciate
13th Feb 2021, 10:02 AM
UZY-ANDREW
UZY-ANDREW - avatar
0
visph But if you don't mind, can you make a little code snippet on it??
13th Feb 2021, 10:03 AM
UZY-ANDREW
UZY-ANDREW - avatar