Page MenuHomePhabricator

Chat CPU usage
Closed, ResolvedPublic


The recursive animation of the loading icons (which I might add, are set to opacity: 0 all the time from what I can tell) is killing my computer. I know y'all don't use github anymore, but here are the offending lines:

Will you please, please, please remove the loading thing so I can use battery power for more important tasks?

If you're curious why it is using so much power, jQuery's .animate sets up a tick every 10 milliseconds, which each trigger a repaint (even with it hidden), driving my browser bonkers. You could stop the animation when it is hidden, or use a CSS animation instead, but I have never seen this loader thing visible, so...

Event Timeline

Seaside98 created this task.Oct 4 2016, 3:46 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 4 2016, 3:46 AM

What are your PC specs?

SamanthaNguyen added a project: MediaWikiChat.
SamanthaNguyen moved this task from Backlog to Feedback on the MediaWikiChat board.

Mac. Brickimedia chat uses a constant 25% cpu when visible.

This is a little DIY loading GIF which is set to visible in the time between sending your message and it appearing on the screen. On a fast wiki like en .bm this is a very small period of time, but on other wikis it can be much longer. It's strange that some computers horifically struggle with this while most take it fine, but I'll work out how to stop the animation when the dots aren't shown.

Change 329537 had a related patch set uploaded (by UltrasonicNXT):
Change the loading dots to a GIF

Change 329537 merged by jenkins-bot:
Change the loading dots to a GIF

UltrasonicNXT closed this task as Resolved.Dec 29 2016, 1:31 AM

I've changed the animated dots to a loading gif, so there should be no CPU drain now.