How to show website only after full loading of scripts and images?

0 like 0 dislike
5 views
How do I make a website loaded with preloader'ohms, and display only after full loading of images and scripts, but the initialization scripts run no time load preloader and after that how the whole page loads, as well as animation on the website is scripted
by | 5 views

1 Answer

0 like 0 dislike
The process of loading the HTML document, conventionally, consists of three stages:

DOMContentLoaded browser has completely loaded the HTML and built the DOM tree.
load – the browser has downloaded all the resources.
...

\rhttps://learn.javascript.ru/onload-ondomcontentloaded

Just show the preloader, and after loading of all resources - remove it.
by
110,608 questions
257,186 answers
0 comments
33,905 users