loading page | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

loading page

Hi, does anyone know how to make a blank page with a background and a loading logo after clicking on a given option in the menu? I mean how to implement it and in what file?

17th Jun 2021, 12:44 PM
Kacper Kowalski
Kacper Kowalski - avatar
1 Answer
+ 1
Kacper Kowalski a loader should not be implemented in the page with the link to the new page, but in the new page linked ^^ a loader could be implemented in a page wich do ajax updates... even if you could use ajax requests to get full new pages, that doesn't make lot of sense ;P however, blank page is done through js document.open(), then html source string is added with document.write() and finally document must end with document.close() loader is usually set as full screen size overlay at start of html... (and hidden/removed when page is ready)
17th Jun 2021, 4:07 PM
visph
visph - avatar