3 ms·
> Requests to Facebook's servers accounted for 1.5 MB of the 2.4 MB tranfered by the ENTIRE page. 87 network requests, 35 javascript files injected and it didn'
by korzun 9y ago
> Requests to Facebook's servers accounted for 1.5 MB of the 2.4 MB tranfered by the ENTIRE page. 87 network requests, 35 javascript files injected and it didn't even load all the comments! (I had to click on a "Load more comments" button to load the rest of the comments.)
This is an issue for a really small segment of users. Not really a cause for concern in 2017. Especially when most of that stuff is already cached.
> Why the hell do you need 37 javascript files and 1.5 MB to load three comments?
That's oversimplifying it. You are loading 37 assets to support a social commenting platform.
- adtac 9y ago> This is an issue for a really small segment of users. Not really. I'm from India; while my home network connection is pretty good, when I'm travelling anywhere outside the metros, the mobile network speed is abysmal. However quite a few news outlets employ Facebook's comment system. You can imagine what a nightmare it'll be for users to load all that with a 2G connection. > You are loading 37 assets to support a social commenting platform. 37 Javascript files out of which, I'm willing to bet, most are tracking agents employing every trick in the book to record all activity. Wasn't there a recent article that discovered that FB continuously sent home the position of your cursor when you're scrolling through your newsfeed so that they can place ads better?
- korzun 9y agoYour experience on 2G networks is already degraded; removing an asynchronous comment system will not magically fix it or make it better. > 37 Javascript files out of which, I'm willing to bet, most are tracking agents employing every trick in the book to record all activit You would lose that bet.
- __jal 9y agoMy solution is much easier. I block all known FB IPs via provisioning rules on my phone, and never have to see (or pay for) any of that crap.
- steventhedev 9y agoYou're being downvoted because a large segment of HN is engineers who prefer sites like http://motherfuckingwebsite.com http://motherfuckingwebsite.com and http://evenbettermotherfucking.website http://evenbettermotherfucking.website Basically, what it comes down to is that if all 37 requests are done in parallel, then you're only loading the page as slowly as the slowest. Sadly, this is rarely the case. Most browsers will only make 6 concurrent requests from a server, which you can see in Firefox via the about:config page and the network.http.max-persistent-connections-per-server. Worse, some of that JS is probably downloading more JS, which means that you will have multiple requests going out. On mobile, this means you're running 8-30 second delays for each "group" of requests, especially if you have poor reception. Good news is that after that initial latency, the actual transfer should go fairly fast. On the other hand, a social commenting program should need at a minimum 1 JS file, 1 CSS file, 1 for the actual data (3 comment texts, 3 base64 encoded profile pics at a small resolution). So FB is running at ~30x the optimum (87 assets, of which 35 are JS). If you think it's not that big a deal, I'd suggest taking a trip abroad or just out to some smaller towns in your area, and really experience why users feel the internet has not really gotten faster since the 90s (keeping in mind users don't care about data size, they care about latency).
- deleted 9y ago[deleted]
- noir_lord 9y agoAgreed with everything you said except > keeping in mind users don't care about data size, they care about latency. Users do care about data size since there are still a lot of people on data limited contracts even in the UK which has a fairly healthy mobile market. What people don't necessarily realise is the connection between the two, I'd quite like it if the mobile browsers had a running total of the total amount of data transferred in that tab on each new visit/refresh. I'm a programmer and I still don't know which pages are heavy or not (given fixed bandwidth the time to interaction would be a clue but mobile internet latency is all over the map so you can't tell if it's a big site/page or just the mobile internet shitting the bed).
- 9y ago
- zelos 9y agoI know, it's not like huge numbers of people view web pages on low-powered devices with limited battery life connected via an unreliable, metered wireless internet connection.
- korzun 9y ago> I know, it's not like huge numbers of people view web pages on low-powered devices with limited battery life connected via an unreliable, metered wireless internet connection. Love the sarcasm. What devices are you talking about here? Name ten popular websites that will function on low-powered devices with limited battery life connected via an unreliable, metered wireless internet connection. Heck, give me a site that will properly work on Motorola Razr.