[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

My web page takes too long to load. How can I make it so that

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 19
Thread images: 2

File: 1486029164064.jpg (303KB, 1312x863px) Image search: [Google]
1486029164064.jpg
303KB, 1312x863px
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
>>
File: 1473001590562.png (495KB, 380x2407px) Image search: [Google]
1473001590562.png
495KB, 380x2407px
>>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.
Thread posts: 19
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.