High CPU usage on a particular website (Khan Academy)

Running the Mate System Monitor, I've noticed that my CPU usage skyrockets when I am on Khan Academy. This is particularly bad on the Mastery Challenge pages. Most of the cores are around 10-20%, with one of them almost always jumped up to 90 or even a 100%.

Once I close that one tab, CPU usage immediately drops down to a reasonable level.

Yes, I know other stuff is open in that screenshot—like Genius—but those programs/tabs do not trigger this high CPU usage. But if Khan Academy is open, it immediately skyrockets, no matter what else is or is not open, and remains that way whether I'm active on there or not. I've tried both Firefox and Chromium, and both do this. Chromium seems to stabilize at a somewhat lower level of CPU activity spread across more cores, but it is still far higher than normal.

Got any idea what might be causing this, and hopefully a fix? :smiley: This is quite annoying, especially since it is getting rather HOT where I am, and excess computer heat is not welcome. KA has a lot of imbedded vids and interactive content, but this seems excessive.

I don’t know from “Khan Academy” but if it’s a website i’d turn off javascript and see if that cuts processor usage… of course most of the websites in existence today simply refuse to function without javascript, so there ya go, if it’s a website then it’s like 96% certain that it’s just crappy javascript code. imo.

1 Like

Yeah as @crankypuss says, it’s definitively the fault of the website.

There is no fix for that on the OS level, it’s entirely due to the decisions of the website operators.

Check this out though:

1 Like

Thanks man, I guess it is the fault of the website after all. I’m sure Khan Academy won’t function without Javascript. It makes very heavy use of interactive features, editors, and mini-programs embedded in the pages. KA loves JS—they even have a introduction to programming for kids that embeds a JS ide on the exercises pages (itself written in JS, no doubt) so you can write small JS programs and run them. Basically Javascript-ception. :smiley:

It’s no big deal, really, I was just using the math and calculus section as a supplement to my textbooks.

Yeah, that's the conclusion I came too. KA needs to fix their crappy Javascript. :smile:

Thanks for the link, definitely sounds like something I could use! Do you know if Chromium has this behavior? I don't use Chrome because I prefer libre software, but I use Chromium a lot.

I'm unaware of how chrome and chromium match versions and features, maybe someone else will be able to answer this one.