My web page takes too long to load.
How can I make it so that the page is available to scroll before everything is loaded?
document.addEventListener("DOMContentLoaded", function() {
var popover = document.getElementById("loadImage");
var content = document.getElementById("content");
content.style.display = 'block';
popover.style.display = 'none';
});
Easiest way.
>>58866831
>document.addEventListener("DOMContentLoaded"
I'm not big on javascript, how do I implement this?
basically there's a tonne of content which I want to keep on there but it takes ages to load making the user wait
How about don't bloat your site
>>58867108
how about no
>>58867054
>basically there's a tonne of content
If you have lots of content you shouldn't be worried about padding your website with useless shit.
http://motherfuckingwebsite.com/
Stop using JS to do every fucking thing with fancy transitions/scrolling/loading animations/other BS and JUST CODE IN FUCKING HTML/CSS LIKE A FUCKING INTELLIGENT PERSON.
The fucking internet is not meant to be your fucking graphical showcase.
>>58866805
>the evolution of religion
Ya cheeky cunt.
>>58867149
>http://motherfuckingwebsite.com/
I'm not worried about padding it out, I'm trying to make the top content available while the lower content is still loading
>>58867173
that's nice but I'm not using really any JavaScript either
>>58866831
someone tell me how to use this
>>58867221
Split it into multiple separate pages like a normal person.
>>58866805
Can you link the site or at least show profiler report?
>>58867772
no can do
>>58867813
what's that
>>58867772
I have separate pages but I want my homepage to include a tonne of content because everyone hates loading a new page but some people like to just scroll forever
>>58867753
>open source mushrooms
>>58866805
If you posted a decision tree or a parse tree you'd look smarter.
>>58867886
Are you retarded? What kind of a website you own? Watches shop?
The fuck OP.
>>58866903
>>58867753
Current state of web "developers" everyone.