Justin du Coeur (jducoeur) wrote,
Justin du Coeur
jducoeur

Anyone know why Chrome (maybe Javascript) sometimes goes haywire when it sits in the background?

I'm one of those people who tends to have open tabs in my browser. Like, *lots* of open tabs. Like, 50 or more.

I'm not sure if it's a recent change, but the past week I've been noticing a tendency for Chrome to start chewing 50% of my CPU (that is, two cores) when I'm not doing anything. When I investigate, it always seems to be that two tabs that are *not* currently on top are each eating 25% of CPU. It's not the same tabs each time, but it does always seem to be "heavy" pages that are likely to be full of Javascript. The problem usually goes away simply by finding and clicking on that tab, bringing it to the front. My best guess is that the Javascript on these pages is getting into some kind of frantic loop, doing something that isn't allowed while it's in the background, but that's just a guess.

Anybody have any concrete ideas what is happening here? I ask mostly out of idle curiosity, but also because there may be an anti-pattern that I want Querki to avoid...
Tags: technology
Subscribe

  • Going to Italy

    So Kate and I will be heading to Italy in October (for our honeymoon). We're mostly good on where we're going, how we're getting there and what to…

  • First day of the next phase of my life

    Friday was formally my last day at Memento, but I count it as yesterday. Way back in March, I gave a sort-of four months' notice, saying that I would…

  • I love my friends, but they're not always observant

    As in -- Kate was wearing a pretty emerald ring yesterday. Yes, that means what you think it does. (No, it's not the "real" engagement ring yet --…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 10 comments

  • Going to Italy

    So Kate and I will be heading to Italy in October (for our honeymoon). We're mostly good on where we're going, how we're getting there and what to…

  • First day of the next phase of my life

    Friday was formally my last day at Memento, but I count it as yesterday. Way back in March, I gave a sort-of four months' notice, saying that I would…

  • I love my friends, but they're not always observant

    As in -- Kate was wearing a pretty emerald ring yesterday. Yes, that means what you think it does. (No, it's not the "real" engagement ring yet --…