Slashdot Mirror


Chrome 57 Limits Background Tabs Usage To 1% Per CPU Core (bleepingcomputer.com)

An anonymous reader quotes a report from BleepingComputer: Starting with Chrome 57, released last week, Google has put a muzzle on the amount of resources background tabs can use. According to Google engineers, Chrome 57 will temporarily delay a background tab's JavaScript timers if that tab is using more than 1% of a CPU core. Further, all background timers are suspended automatically after five minutes on mobile devices. The delay/suspension will halt resource consumption and cut down on battery usage, something that laptop, tablet, and smartphone owners can all relate. Google hinted in late January that it would limit JavaScript timers in background tabs, but nobody expected it to happen as soon as last week's Chrome release. By 2020, Google hopes to pause JavaScript operations in all background pages.

27 of 154 comments (clear)

  1. Blame yourselves.... by bobbied · · Score: 5, Insightful

    Web developers who write javascript that just keeps chewing up resources are why we have to resort to this.... You have no one to blame but yourselves for abusing the privilege of having active content that just sucks resources to get more add revenue....

    I know some of you developers actually think about such stuff and care about the end user's experience, but there are a few of you out there that are messing stuff up for all of us, so now the browser has to throttle you.. Thank You for nothing (from the rest of us).

    --
    "File to fit, pound to insert, paint to match" - Aircraft Maintenance 101
    1. Re:Blame yourselves.... by Luthair · · Score: 4, Insightful

      Its not really site developers for the most part - its f*cking ad networks, content networks, user tracking, etc.

    2. Re:Blame yourselves.... by CrashNBrn · · Score: 4, Informative

      It's both. Javascript image transforms are still grossly inefficient compared to any native image tool. Javascript keyboard and mouse hooks can make the whole browser sluggish. Then add in adverts that do all of that on top of possibly inline DOM manipulation. It's a freaking disaster.

    3. Re:Blame yourselves.... by Anonymous Coward · · Score: 5, Funny

      "more add revenue"

      Surely at least one of those words is redundant. Add means addition or additional, so "more additional" is a strange thing to say. just "more revenue" or "additional revenue" would be sufficient.

      Or maybe you should just fucking learn that the abbreviation for "ADvertisement" is "ad" with one fucking d, dipshit.

  2. Grammar Nazi to the rescue! by Pfhorrest · · Score: 2, Informative

    something that laptop, tablet, and smartphone owners can all relate.

    Unless you mean that those people will all testify to the aforementioned something, you're missing either a "to" or a "to which" depending on how pedantic you want to be. Those people don't relate it; they relate to it. It is something they can relate to, or if you want to be fancy, it is something to which they can relate.

    --
    -Forrest Cameranesi, Geek of all Trades
    "I am Sam. Sam I am. I do not like trolls, flames, or spam."
  3. Good uses for background by phantomfive · · Score: 4, Interesting

    I used to wish browsers would do this. But now I know that there are good uses for background processes, even though limiting them to 1% seems fine to me.

    For example, slack changes the tab title and icon when an event happens, like a new message. Gmail updates the title to show how many messages you have. These are reasonable use cases.

    --
    "First they came for the slanderers and i said nothing."
    1. Re:Good uses for background by Anonymous Coward · · Score: 2, Insightful

      I wish there was manual control on a per-tab basis (or better yet, per site basis).
      And I'd like to be able to set a tab to 0% cpu, just completely halt it, like a SIGSUSP signal.
      Mainly because I do not like web pages to contact the mothership if I am not using them, its a major privacy risk.
      I use a VPN and change my IP address on a regular basis. I can clear cookies, etc. But a web page that phones home with state data will be able to track me across IP addresses. And we all know that if it can be used to violate your privacy, there are 100 companies already doing exactly that.

    2. Re:Good uses for background by ohnocitizen · · Score: 4, Insightful

      This feature should allow whitelisting domains to keep javascript fully active. I want my email client to keep running javascript. I don't want some random news page I left open to decide it's time to launch a video ad.

    3. Re:Good uses for background by jfisherwa · · Score: 4, Informative

      Added a comment above .. but don't want you to miss it .. The Great Suspender extension for Chrome:

      https://chrome.google.com/webs...

    4. Re:Good uses for background by AmiMoJo · · Score: 3, Informative

      How much of your quad core 3GHz CPU does the email client need? 1% is still 4x30MHz cores. People used to read email on single core CPUs running under 10MHz, and those cores didn't have advanced features like cache or single cycle multipliers or branch prediction or out-of-order execution.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
  4. What happens to notifications? by lucasnate1 · · Score: 3, Interesting

    I'm using facebook and google hangouts to communicate with people. Since I don't want to install applications, I use them as browser tabs. Does this mean I will no longer get noticed when someone messages me?

    1. Re:What happens to notifications? by strikethree · · Score: 3, Insightful

      Does this mean I will no longer get noticed when someone messages me?

      If the notifications take more than 1% of a modern processor, then yes, you will not receive timely notifications. It should be noted at this time that fully memory-protected, graphical interface, mostly modernish operating systems used to run with less CPU than even .1% of a modern CPU (Amiga, m68k). I would commit suicide in despair if a notification takes more CPU power than a full operating system. (Why yes, I am preparing the nitrogen bag and morphine now.)

      --
      "Someone needs to talk to the tree of liberty about its ghoulish drinking problem." by ohnocitizen
  5. Firefox already there by Trogre · · Score: 2

    Pretty sure Firefox already does something very similar to this. The mobile version does, anyway.

    --
    "Nine times out of ten, starting a fire is not the best way to solve the problem." - my wife
  6. Re:Javascript 2017? by tepples · · Score: 5, Insightful

    Because making a web app in JavaScript is cheaper than making five native apps, one each for Windows, macOS, GNU/Linux, iOS, and Android.

  7. If this saves battery power... by viperidaenz · · Score: 4, Funny

    Is Microsoft going to stop spamming me with notifications to use Edge on my laptop because my battery will last 30% longer when ever I open Chrome?

  8. Audio and WebSockets defeat this by tepples · · Score: 5, Informative

    sometimes I'll listen to a podcast/music in a another tab

    Then this does not affect you. From the featured article:

    The good news is that background tabs playing audio or maintaining real-time connections like WebSockets or WebRTC won’t be affected by the 1% CPU usage limit.

  9. Re:Javascript 2017? by Anonymous Coward · · Score: 5, Interesting

    making a web app in JavaScript

    But nobody does that. They make ordinary webpages that use 500KB of javascript code to make something that looks (and feels) like a cheap 40KB HTML page based on iframes from back in 1996. Big static posters with HD stock images, 3 lines of text, and a download/email button. Why do these pages need javascript at all? What is javascript for?!

  10. I Like This Change by TranquilVoid · · Score: 5, Funny

    A step in the right direction. Next they'll be limiting chome.exe processes to only 80% of installed RAM!

  11. Won't that just mean by rsilvergun · · Score: 2

    folks that want to abuse it will use a web socket or silent audio to hack around it and sites that weren't abusing it get throttled? I guess it'll help with some poorly optimized sites though...

    --
    Hi! I make Firefox Plug-ins. Check 'em out @ https://addons.mozilla.org/en-US/firefox/addon/youtube-mp3-podcaster/
  12. Re: Javascript 2017? by Anonymous Coward · · Score: 5, Insightful

    Ads and trackers

  13. The Great Suspender by jfisherwa · · Score: 2

    I've seen a few comments after something like this:

    I use The Great Suspender extension for Chrome. It can kill tabs after a certain period of time and also delays loading them on a Chrome restart (essential for 100+ open tabs) -- you can also whitelist sites.

    https://chrome.google.com/webs...

  14. Still too generous. by Gravis+Zero · · Score: 2

    1% is still a huge amount because how absurdly fast our processors have become. Do you know how much you can do with 45MHz? Javascript is being dynamically translated into machine code, so you can still do a LOT. The only thing this addresses is sites that hog the CPU, not any of the nefarious bullshit that sites do to track you every 7 seconds.

    --
    Anons need not reply. Questions end with a question mark.
  15. Cookie Clicker is an RTS without the combat by tepples · · Score: 2

    And don't forget my epic cookie clicker run, which I've left in some background tab somewhere for well over a year now!

    Is that literally just clicking a cookie over and over?

    No. Cookie Clicker by Orteil is sort of like a distilled version of an RTS tech tree: you spend cookies to buy buildings and upgrades that produce cookies over time.

  16. Re:Javascript 2017? by TheInternetGuy · · Score: 2

    Actually, it is Numerically 2017, literally it would be twenty seventeen.

    --
    If my comment didn't sound as good in your head as it did in mine, then I guess we all know who's to blame
  17. Re:I just block all of it by tepples · · Score: 3, Informative

    Now I just want this feature for firefox

    It's not quite the same, but opening about:config and setting privacy.trackingprotection.enabled to true will blacklist a lot of abusive adtech.

  18. Re:Javascript 2017? by ArmoredDragon · · Score: 3, Insightful

    the whole internet runs on javascript, just saying

    The web isn't the internet, just saying.

  19. Hooray, now how about memory? by sabbede · · Score: 3, Insightful

    Do background tabs really need to eat a quarter-gig?