tag:tenfourfox.tenderapp.com,2012-01-07:/discussions/problems/8334-high-cpu-usage-on-certain-websiteTenFourFox: Discussion 2017-06-28T01:15:42Ztag:tenfourfox.tenderapp.com,2012-01-07:Comment/417446442017-01-14T20:00:50Z2017-01-14T20:01:11ZHigh CPU usage on certain website<div><p>I can replicate the high CPU problem at <a href="https://www.fanfiction.net/s/11049179/1/Frozen-Destiny%29">https://www.fanfiction.net/s/11049179/1/Frozen-Destiny%29</a>
even when the site seems to be idle.</p>
<p>There are four possible solutions at least:<br>
1) Install G4FanControl, which I would recommend for all G4
notebooks, and set the temperature values to 10 °C below the
defaults: <a href="https://github.com/andreafabrizi/G4FanControl">https://github.com/andreafabrizi/G4FanControl</a><br>
2) Use Adblock, Inspector or any other tool to find the offending
scripts that use up the CPU, block them and hope the site still
works afterwards.<br>
3) Use YesScript or NoScript to block JS (YesScript is nice because
it's uncomplicated and lets you switch on JS if you need it very
easily)<br>
4) use Reader Mode to read stories (the little book icon in the URL
bar)</p></div>Chris (chtrusch)tag:tenfourfox.tenderapp.com,2012-01-07:Comment/417446442017-01-14T20:08:25Z2017-01-14T20:08:25ZHigh CPU usage on certain website<div><p>I can also replicate this, but unfortunately I think this is a
limitation of our aging hardware. The page appears to run a "save
script" every two seconds, which is why switching away from that
tab reduces the CPU usage -- TenFourFox/Firefox diminishes the
priority of timers on background tabs to save cycles. The impact
seems to be CPU-related. On my MacBook Air the computer can keep
up, but the Quad G5 jumps to around 40% utilization and on my 1GHz
iMac G4 it does indeed run up as high as 90%. The code is embedded
in the HTML itself, so it is probably difficult to block only the
timeouts.</p>
<p>Please note I don't know if that's the only cause of what's
going on with that page. That said, two second timeouts over and
over just to save your reply seems a bit excessive even on a modern
PC, so I might ask the site owner to consider backing that down a
bit. You can point them to this thread if you like.</p>
<p>I agree with Chris that installing G4FanControl is a good idea
anyway. I had an iBook G4 cook itself to death too.</p></div>Cameron Kaisertag:tenfourfox.tenderapp.com,2012-01-07:Comment/417446442017-06-26T04:00:55Z2017-06-26T04:00:56ZHigh CPU usage on certain website<div><p>Bit late to this, but in trying to debug why fanfiction.net was causing my (completely unrelated to tenfourfox) browser to go crazy it was the one result that came up in Google, and figured I'd better share my solution for anyone else who gets the same problem</p>
<p>It turns out the problem is NOT the javascript checking for reviews every two seconds, but an SVG animated spinner for Google Translate that for some reason is constantly (about every 15ms) causing the page to redraw, even if it isn't visible.</p>
<p>If you're using uBlock / Adblock / another compatible adblocker, and assuming you don't actually USE Google Translate, the following rules in your custom filters should solve the problem (in short by blocking google translate):</p>
<p>translate.google.com<br>
translate.googleapis.com</p></div>Alasdairtag:tenfourfox.tenderapp.com,2012-01-07:Comment/417446442017-06-28T01:15:40Z2017-06-28T01:15:40ZHigh CPU usage on certain website<div><p>Very interesting. There might not be a whole lot I can do about that, unfortunately; SVG is taxing to animate without hardware acceleration (which we can't enable for various technical reasons with the 10.4 SDK).</p></div>Cameron Kaiser