I have all my JavaScript files linked on the bottom of my page. This way, the HTML can get rendered before loading any of the scripts. The only problem is that the HTML shows to the user before the scripts finish "decorating" the HTML elements. Is there an elegant way to show the user a splash page to your app before the scripts and styles kick in?
Share
You can create a
divwithposition: fixedand a highz-indexcovering the whole screen as first element in body. A loading animation or text can be shown inside.The very last line of the body then is a JavaScript which sets
display: noneto thatdiv.