This site is using significant amounts of energy
Discussion
Install a JavaScript blocker plug-in for your browser.
You'll lose a little functionality, but JavaScript can generally be re-enabled quickly when you need it.
I use Disable JavaScript for Firefox which is both browser tab and site specific, and has a handy on/off button in address bar.
You'll lose a little functionality, but JavaScript can generally be re-enabled quickly when you need it.
I use Disable JavaScript for Firefox which is both browser tab and site specific, and has a handy on/off button in address bar.
I think it's this... at least in part.
https://static.pistonheads.com/5620/Assets/bundles...
{{{
function i() {
var n = $(".breadcrumb-toolbar p:first, .breadcrumb ul, #breadcrumb ul, .breadcrumb-toolbar");
n.length > 0 ? n.appendTo($("#navComponent .innerContent")) : setTimeout(function() {
i()
}, 1)
}
}}}
i.e. it checks the DOM, then waits a millisecond before doing it again. Looks like a bag of st to me.
Code inserts seem as fked as everything else.
https://static.pistonheads.com/5620/Assets/bundles...
{{{
function i() {
var n = $(".breadcrumb-toolbar p:first, .breadcrumb ul, #breadcrumb ul, .breadcrumb-toolbar");
n.length > 0 ? n.appendTo($("#navComponent .innerContent")) : setTimeout(function() {
i()
}, 1)
}
}}}
i.e. it checks the DOM, then waits a millisecond before doing it again. Looks like a bag of st to me.
Code inserts seem as fked as everything else.
Thread was started 2nd September so over a month and I am able to replicate the issue suggesting there is not intention to fix this issue anytime soon. I have adblocker installed and even disabled the acceptable ads filter but I saw the CPU spiking on active PH pages.
Based on what 768 mentioned above I have gone into javascript settings and added [*.]pistonheads.com to the block list. CPU usage has gone down considerably now.
Chrome and MBP by the way.
Based on what 768 mentioned above I have gone into javascript settings and added [*.]pistonheads.com to the block list. CPU usage has gone down considerably now.
Chrome and MBP by the way.
768 said:
I think it's this... at least in part.
https://static.pistonheads.com/5620/Assets/bundles...
{{{
function i() {
var n = $(".breadcrumb-toolbar p:first, .breadcrumb ul, #breadcrumb ul, .breadcrumb-toolbar");
n.length > 0 ? n.appendTo($("#navComponent .innerContent")) : setTimeout(function() {
i()
}, 1)
}
}}}
i.e. it checks the DOM, then waits a millisecond before doing it again. Looks like a bag of st to me.
Code inserts seem as fked as everything else.
Lolwut. That's retarded. Jquery is great but it has lead to some appalling coding practices.https://static.pistonheads.com/5620/Assets/bundles...
{{{
function i() {
var n = $(".breadcrumb-toolbar p:first, .breadcrumb ul, #breadcrumb ul, .breadcrumb-toolbar");
n.length > 0 ? n.appendTo($("#navComponent .innerContent")) : setTimeout(function() {
i()
}, 1)
}
}}}
i.e. it checks the DOM, then waits a millisecond before doing it again. Looks like a bag of st to me.
Code inserts seem as fked as everything else.
Gassing Station | Website Feedback | Top of Page | What's New | My Stuff