Author Topic: Loading Forum Pages in Chrome browser huge CPU usage  (Read 9047 times)

0 Members and 1 Guest are viewing this topic.

Offline metalphreak

  • Frequent Contributor
  • **
  • Posts: 815
  • Country: au
  • http://d.av.id.au
    • D.av.id.AU
Loading Forum Pages in Chrome browser huge CPU usage
« on: January 23, 2012, 12:34:16 pm »
Does anyone else get some serious lag/cpu usage when opening the forum? Sometime's I'll open a few tabs on my laptop (MacbookPro/OSX) and it lags for a bit before I can scroll up/down. At the same time my cpu usage takes a massive hit. I've sort of noticed  the same thing on my desktop, but its not as obvious because its a much more powerful quad core cpu.

Is it just some issue with SMF and chrome?

Offline Chet T16

  • Frequent Contributor
  • **
  • Posts: 522
  • Country: ie
    • Retro-Renault
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #1 on: January 23, 2012, 12:45:31 pm »
Yeah i get that, it locks up for a few seconds before you can scroll down as you say.

This is using chrome on my dual core 1.5GHz netbook
Chet
Paid Electron Wrestler
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 31387
  • Country: au
    • EEVblog
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #2 on: January 23, 2012, 12:58:12 pm »
Nope, mine is as near instantaneous as you can get it for being on the other side of the planet to the server, and no CPU spike, and I'm rending a HD video in the background in real-time.

Dave.
 

Offline Teknotronix

  • Regular Contributor
  • *
  • Posts: 145
  • Country: au
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #3 on: January 23, 2012, 01:22:32 pm »
Does anyone else get some serious lag/cpu usage when opening the forum? Sometime's I'll open a few tabs on my laptop (MacbookPro/OSX) and it lags for a bit before I can scroll up/down. At the same time my cpu usage takes a massive hit. I've sort of noticed  the same thing on my desktop, but its not as obvious because its a much more powerful quad core cpu.

Is it just some issue with SMF and chrome?

Yep, exactly the same thing here. Macbook unibody, Windows 7 and chrome 16.0.912.75 m
Don't drone me bro!

 

Offline metalphreak

  • Frequent Contributor
  • **
  • Posts: 815
  • Country: au
  • http://d.av.id.au
    • D.av.id.AU
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #4 on: January 23, 2012, 01:30:26 pm »
Yeah it's nothing to do with the server or network latency. Chrome seems to run into some trouble rendering the page. I might do some investigation in the morning and see if there's a fix for Chrome or SMF.

Also running chrome version 16.0.912.75 m here too.

What browser do you use Dave?

Offline 8086

  • Super Contributor
  • ***
  • Posts: 1086
  • Country: gb
    • Circuitology - Electronics Assembly
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #5 on: January 23, 2012, 03:12:37 pm »
I've noticed this on my laptop frequently using firefox. On my desktop using the same browser there is no issue, but my laptop isn't terribly underpowered or anything, I think SMF must not be very efficient.
 

Offline McMonster

  • Frequent Contributor
  • **
  • Posts: 417
  • Country: pl
    • McMonster's blog
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #6 on: January 23, 2012, 03:27:48 pm »
I maintain some SMF forums of roughly the same size myself and don't see any problems. This forum is noticeably slower than any other SMFs on my Windows 7 with Firefox 9.0.1 (more RAM, CPU time and bandwidth). On my mobile phone with Symbian 3's built in browser it's barely navigable comparing to the same other forums. My best guess is that all those FB, Twitter and other stuff is the reason for this, forum worked fine before they appeared.
 

Offline PedroDiogo

  • Regular Contributor
  • *
  • Posts: 62
  • Country: pt
  • EE Student
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #7 on: January 23, 2012, 04:21:49 pm »
Does anyone else get some serious lag/cpu usage when opening the forum? Sometime's I'll open a few tabs on my laptop (MacbookPro/OSX) and it lags for a bit before I can scroll up/down. At the same time my cpu usage takes a massive hit. I've sort of noticed  the same thing on my desktop, but its not as obvious because its a much more powerful quad core cpu.

Is it just some issue with SMF and chrome?

Same problem here too! Macbook Air, Mac OSX 10.7.2 and Chrome.

 

Offline ivan747

  • Super Contributor
  • ***
  • Posts: 2022
  • Country: us
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #8 on: January 23, 2012, 08:08:22 pm »
The same here. It isn't constant, though. CPU usage is considerably higher using Chrome compared to Safari. All tabs have their own process, that takes from 0.1% to 1.75% of the processor usage. Flash player takes about 1% idle, with some embedder Youtube videos loaded. Chrome itself takes anything from 1% to 30%. Sometimes the tab's process may take more CPU usage. All that is while idling. When loading pages, Chrome takes all the CPU for itself, so lag is the most apparent manifestation of this problem.

I have attached a screenshot of the CPU usage when loading a page on this forum.
 

Offline RTC

  • Newbie
  • Posts: 4
  • Country: fi
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #9 on: January 23, 2012, 10:57:01 pm »
I can confirm loading pages on this forum takes a lot longer than other SMF-based forums I visit.
For some reason, the alternative themes don't work either, I like to use Babylon, but it doesn't seem to be loading the CSS or something.
 

alm

  • Guest
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #10 on: January 23, 2012, 11:03:21 pm »
For me blocking the 'social' links in the forum helps a lot. Performance, especially on mobile devices, got a lot worse when they were enabled (it's close to unusable on mobile now), and I don't see the point of having them enabled. Too bad enabling content blocking to block them also blocks the ads, guess I have to chose between bad performance and depriving Dave from ad money. Content blocking on mobile devices is also much harder.
 

Offline oliver602

  • Regular Contributor
  • *
  • Posts: 90
  • Country: gb
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #11 on: January 23, 2012, 11:50:16 pm »
Same here, forum sometimes takes far longer than other websites to render when you zoom in Android ICS. Not noticed much on the PC.
 

Offline sonicj

  • Frequent Contributor
  • **
  • Posts: 756
  • Country: us
  • updata successed!
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #12 on: January 24, 2012, 02:20:59 am »
i've noticed chrome renderer randomly whilin' out in the activity monitor.  restarting the browser usually takes care of it... haven't investigated it further.

i have used multiple browsers since i first switched to mac so its not really a big deal when something doesn't work right... i just open it elsewhere.  Opera has historically been my browser of choice, but its a quirky sob when it comes to flash on the mac. Camino is a solid browser.
-sj
 

Offline metalphreak

  • Frequent Contributor
  • **
  • Posts: 815
  • Country: au
  • http://d.av.id.au
    • D.av.id.AU
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #13 on: January 24, 2012, 02:26:14 am »
yeah I've noticed when it lags the social media icons under each post pop up one at a time.

Is it really necessary to have tweet/+1/facebook links for every post in a thread? Perhaps it snuck in with the updates like the sociable bar on the main site.

Offline hans

  • Super Contributor
  • ***
  • Posts: 1067
  • Country: nl
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #14 on: January 24, 2012, 04:23:47 pm »
I suspect this has something to do with the overloaded amount of twitter/facebook icons on the site (I just checked developer tools - well over 150 requests to external images etc. just on this page, still loading!). I just opened 6 topics, chrome was using well over 1GB and locking up.

Edit: i just blocked all facebook, twitter and google (those facebook like buttons etc.) plus requests, now runs smooth. I think Google Plus is especially slow, as those requests took ages to load..
« Last Edit: January 24, 2012, 04:27:08 pm by hans »
 

Offline Teknotronix

  • Regular Contributor
  • *
  • Posts: 145
  • Country: au
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #15 on: January 24, 2012, 06:36:51 pm »
Edit: i just blocked all facebook, twitter and google (those facebook like buttons etc.) plus requests, now runs smooth. I think Google Plus is especially slow, as those requests took ages to load..

What are you using to block?
Don't drone me bro!

 

Offline PedroDiogo

  • Regular Contributor
  • *
  • Posts: 62
  • Country: pt
  • EE Student
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #16 on: January 24, 2012, 07:27:05 pm »
I suspect this has something to do with the overloaded amount of twitter/facebook icons on the site (I just checked developer tools - well over 150 requests to external images etc. just on this page, still loading!). I just opened 6 topics, chrome was using well over 1GB and locking up.

Edit: i just blocked all facebook, twitter and google (those facebook like buttons etc.) plus requests, now runs smooth. I think Google Plus is especially slow, as those requests took ages to load..

I did this too and confirm, now pages load quicker and can open multiple tabs at once.

I used Adblock Plus and the filters I'm using are:

Code: [Select]
http://apis.google.com/js/plusone.js
http://connect.facebook.net/*
http://platform.twitter.com/widgets.js
http://platform.twitter.com/widgets/*
http://static.ak.connect.facebook.com/*
http://static.ak.facebook.com/*
http://www.facebook.com/plugins/*
http://www.facebook.com/widgets/*
[url]https://plusone.google.com/_/+1/fastbutton[/url]*
[url]https://www.facebook.com/plugins/[/url]*

@Dave: why do we need to have social plugins on every post? I think a single one on each thread is enough.
 

Offline armandas

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: jp
    • My projects
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #17 on: January 24, 2012, 08:22:38 pm »
I use chrome and the stupid thing can only hide elements, not block them from loading, so the pages are still slow. Seriously, Dave, get rid of those useless buttons already.
 

Offline ivan747

  • Super Contributor
  • ***
  • Posts: 2022
  • Country: us
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #18 on: January 24, 2012, 09:23:00 pm »
@Dave: why do we need to have social plugins on every post? I think a single one on each thread is enough.

Seconded that.

By the way, I don't know if the cause is related to this, but my Kindle Fire takes ages to load the forum. It takes perhaps less than 8 seconds to load and render the forum, but it takes 20 extra seconds to load the rest of the social widgets. During those 20 seconds, the browser is slow and and you can barely scroll because it lags a lot. The social widgets seem to be loaded (or rendered or shown) before users' avatars and flags. (the ones on the left).
« Last Edit: January 24, 2012, 09:30:12 pm by ivan747 »
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 31387
  • Country: au
    • EEVblog
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #19 on: January 24, 2012, 11:56:36 pm »
What browser do you use Dave?

Chrome. No problems at all.

Dave.
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 31387
  • Country: au
    • EEVblog
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #20 on: January 25, 2012, 12:00:12 am »
@Dave: why do we need to have social plugins on every post? I think a single one on each thread is enough.

Seconded that.

Ok, removed. Just the one set of buttons down the bottom of the page.
Any improvement?

Dave.
 

Offline Teknotronix

  • Regular Contributor
  • *
  • Posts: 145
  • Country: au
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #21 on: January 25, 2012, 12:01:10 am »
@Dave: why do we need to have social plugins on every post? I think a single one on each thread is enough.

Seconded that.

Ok, removed. Just the one set of buttons down the bottom of the page.
Any improvement?

Dave.

Wow! It rips now! Cheers Dave.

EDIT: The +1 buttons in each post are removed. Not just the page level buttons.
Don't drone me bro!

 

alm

  • Guest
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #22 on: January 25, 2012, 12:11:25 am »
Thanks, much better now, especially on mobile!
 

Offline Balaur

  • Supporter
  • ****
  • Posts: 525
  • Country: fr
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #23 on: January 25, 2012, 12:12:07 am »
I also confirm the speed improvement. It works much nicer now on my smartphone.
 

Offline 8086

  • Super Contributor
  • ***
  • Posts: 1086
  • Country: gb
    • Circuitology - Electronics Assembly
Re: Loading Forum Pages in Chrome browser huge CPU usage
« Reply #24 on: January 25, 2012, 01:24:34 am »
Yup, much faster on my laptop  ;)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf