There is a script. Which hides the entire contents of the page before the document is fully loaded, the question is how do I get the "background1" to load without waiting for the loading of "background2" and the rest of the page content, but only after fully loading myself.
window.onload = function() { var div4 = document.querySelector('.hide4'); div4 && div4.classList.remove('hide4') var div5 = document.querySelector('.hide5'); div5 && div5.classList.remove('hide5') }; .hide4 { display: none; } .hode5 { display: none; } <div class="hide4"> <div class="background1"> ..content </div> </div> <div class="hide5"> <div class="background2"> ..content2 </div> </div>