Live data from Hacker News

Why are browsers so slow?

ilyabirman.net

11–20 of 376 posts

Re: Why are browsers so slow?

#11
post #7

"Why are browsers so slow?" Site downloads almost 500KB of fonts.

THIS. If you want a fast website, remove all JS and make everything simple. For maximum performance put the static site on a CDN. It isn't hard.

The OP isn't talking about rendering (at least as I understand it, which isn't well either), it's talking about why, after rendering, it takes so long to switch between tabs or why creating a new clean tab takes more than a millisecond.

I, like the OP, don't understand why that part is hard. Does it have to rerun and redownload all the javascript each time you switch to a tab? Are we misunderstanding how websites work? Will removing all JS solve the behavior the author mentions? Obviously doing that will make pages load faster. But that's not what they seem to be asking. Is the OP question not meaningful because of some aspect of page rendering?

Honest questions, I have basically no knowledge about this topic, but have wondered the same thing.

Re: Why are browsers so slow?

#12
Installing Ghostery, Privacy Badger and adblocker makes a world of difference in terms of how fast page loads are for me. Ads are not just annoying, they slow the web down considerably and make the mobile experience terrible.

Re: Why are browsers so slow?

#13
I only notice the kind of "tabs are slow to open" behavior pretty randomly, and without knowing the state of the rest of my machine at those moments (is there something else pegging a few of my cores for some reason?) I can't confidently place any blame on the browser itself.

For what they are, I consider modern web browsers to be exceptionally fast and reliable, and they tend to put a lot of other applications to absolute shame. They are imperfect, but still very, very good.

Re: Why are browsers so slow?

#14

I don't have this problem, blank pages don't take "seconds" to load, even on my little atom-based tablet. The big question I have for people noticing this behavior is how many add-ons do they have. How many times is your "blank page" parsed by an enormous amount of code written in a language not known for its performance?

The only add-ons I use are ones to remove ads. If I didn't have them those ads would easily make the my overall performance much, much worse.

I have a custom blank page loaded from SSD that has only a small amount of html5/pure js and it takes maybe 1000ms on an intel i5/3xxx. If I open a new tab without any other windows/tabs open it's very fast, maybe 100ms. A new private tab (doesn't load add-ons or my custom new tab) opens quickly but not as quickly as a fresh restart w/ no windows/tabs.

Re: Why are browsers so slow?

#17

Agreed, I have about 8GB of pages open right now not doing anything. Many computers don't have that much total ram. I think it's time to have per tab resource throttling. For example if a page uses over a certain amount of . compute resources, the cpu cycles allowed in the next epoch are halved . RAM it's memory accesses per second are halved in the next epoch . network traffic it's kB/s are halved in the next epoch…

And immediately any webGL visualizations / games / necessarily resource intensive webapps are rendered useless as they're automatically throttled back by the browser.

Re: Why are browsers so slow?

#18

I don't have this problem, blank pages don't take "seconds" to load, even on my little atom-based tablet. The big question I have for people noticing this behavior is how many add-ons do they have. How many times is your "blank page" parsed by an enormous amount of code written in a language not known for its performance?

If your browser is designed from the ground up to support add-ons, but can't handle a couple of them without slowing to a crawl, your browser sucks. Don't blame the user for a problem with the software.

Depends... What extensions do you have?

I remember back when FF used to be considered fast. Then we went through the age of extensions. And shortly after that chrome came on the scene, and didn't support extensions (intentionally it seemed), for quite some time.

Guess which browser won the user speed test...

Re: Why are browsers so slow?

#19
> But I remember the times when we had the amazing Opera browser. In Opera, I could have a hundred open tabs, and it didn’t care, it worked incredibly fast on the hardware of its era, useless today. You may ask: why would a sane person want a hundred open tabs, how would you even manage that? Well, Opera has had a great UI for that, which nobody has ever matched. Working with a hundred tabs in Opera was much easier back then than working with ten in today’s Safari or Chrome. But that’s a whole different story. What would you do today if you opened a link and saw a long article which you don’t have time to read right now, but want to read later? You would save a link and close the tab. But when your browser is fast, you just don’t tend to close tabs which you haven’t dealt with. In Opera, I would let tabs stay open for months without having any impact on my machine’s performance.

This is exactly how I'm using Firefox, right now -- 273 tabs open. It's sitting at ~5% of CPU and 450MB of RAM. And switching tabs is instantaneous. And it doesn't reload every page when I quit and restart my browser -- it only loads a tab when I click into that tab. And it has tab groups so that my current group has only about 8 tabs in it, and the other groups are sorted by topic. And on and on.

I find it frustrating when people post these articles as if everyone has this problem, and don't provide enough details as to their setup so that people can help them fix it. I promise you -- if everyone around the world right now had the problem the author was having, it would have been solved. No one would stand for it. Rather than assume everyone is suffering just like you, assume that other people either a) don't behave the way you do, or b) have found a way to fix the problem.

Re: Why are browsers so slow?

#20
post #8

"Why are browsers so slow?" Site downloads almost 500KB of fonts.

"Safari may take a second or two just to open a new blank tab on a 2014 iMac." He's not (just) talking about the slowness of websites, but of browsers themselves.

To be fair, Safari application-level Safari is extraordinarily slow.
Post reply on HN