News for hackers. Stuff that matters.
Re:Why are browsers so slow? by EpicEng on Tuesday December 20, 2016 @09:00PM (#13226219)
I don't imagine many of those tabs are actually loaded.
Re:Why are browsers so slow? by 21echoes on Tuesday December 20, 2016 @10:09PM (#13226537)
Ctrl+tab'd thru all 56 tabs in this group, waited for them to finish loading, opened activity monitor: CPU at 20%, RAM at 811MB. So yea, a fair amount weren't loaded, but loading them didn't make too big of a difference.
Re:Why are browsers so slow? by nothrabannosir on Tuesday December 20, 2016 @10:26PM (#13226586)
CPU at 20%, "loading didn't make too much of a difference"??? 20% is obscene for a process without interaction. Imagine a paused video player taking 20%, or a minimised word editor. Even at 58 videos or documents.
Re:Why are browsers so slow? by syrrim on Tuesday December 20, 2016 @11:18PM (#13226753)
You forget that webpages are allowed to do what ever the hell they want, and so each is probably running a script or two in the background. We put up with a lot in webapps that would never stand in a desktop app.
Re:Why are browsers so slow? by nothrabannosir on Tuesday December 20, 2016 @11:44PM (#13226849)
I don't forget, I just don't forgive. It's unacceptable either way. Someone has to take responsibility---might as well start with the browser. Then we can push it down from there; maybe if browsers were held accountable for pages' resource usage they'd implement resource controls. Like they currently do with limiting setTimeout on inactive pages, but more comprehensively. And maybe they'd implement better inspection tools for resource usage (chrome was ahead of the game; I'm looking at you, Firefox )
Re:Why are browsers so slow? by bzbarsky on Wednesday December 21, 2016 @06:21AM (#13228298)
> Like they currently do with limiting setTimeout on inactive pages, but more comprehensively.

Firefox is working on this. Doing it without breaking things like music streaming sites is ... delicate.

Re:Why are browsers so slow? by MustardTiger on Tuesday December 20, 2016 @11:32PM (#13226811)
This is a huge problem. Javascript has become a blight on the web, and browsers really need to make it easier to manage stopping scripts on background tabs and such.
Re:Why are browsers so slow? by Senji on Wednesday December 21, 2016 @01:20AM (#13227172)
Maybe tabs not currently being viewed should have their JS throttled? Is this an option in FF yet?
Re:Why are browsers so slow? by reitanqild on Wednesday December 21, 2016 @01:50AM (#13227295)
I use Suspend Tab.

Earlier this year I realized a major offender was Google search and search results pages which would spin up a core more than once a minute.

This explained to me at least why it was still hogging cpu even with ad blocker.

Re:Why are browsers so slow? by nicoburns on Wednesday December 21, 2016 @06:31AM (#13228344)
Re:Why are browsers so slow? by drkstr on Wednesday December 21, 2016 @07:07AM (#13228476)
Use requestAnimationFrame instead of setTimeout to get a throttled heartbeat.
Re:Why are browsers so slow? by jbergens on Wednesday December 21, 2016 @10:27AM (#13229795)
I never used to start 100+ normal apps. It would have dragged my old computers to a crawl.
Re:Why are browsers so slow? by EpicEng on Wednesday December 21, 2016 @10:09AM (#13229657)
Well hell, maybe it's time for me to look at FF again. I switched away because it was a memory hog... And now chrome's a memory hog. I read that they made improvements, but 800MB for 240+ tabs is pretty good.