7

Explain to an end user 'like-I'm-five' why webpages sometimes cause stress on the CPU.

Comments
  • 16
    Go ask mom
  • 4
    you see that thing what changes color or text ? that uses your cpu.
  • 6
    Mining Bitcoin.
  • 5
    while (true);
  • 2
    @rantsauce Rofl. Good point.
  • 1
    A lot of framework bundle crap
  • 3
    So... My lil mate.

    Whenever you look at da funny stuff online, it gets downloaded from the internet. In every country of the world are some special computers who are connected with each others.

    They work together, so stuff can be viewed in every country of the world.

    Daddy has to pay a lot of bucks to get access to that, and our computer sucks a lot of power to make the funny stuff look awesome so you can smile....

    So maybe go play outside for a change, hmkay?
  • 3
    Because crypto miners, and a virus called javascript
  • 1
    CPU is the brains behind your browser and pretty much any other application on your computer, including the operating system.

    Now this browser of yours has loaded a website which asks to do some complex calculations in the background, hence it all falls back on brains orchestrating this entire thing - the CPU.

    Btw term for this is ELI5
  • 2
    Becuase of webshits not knowing how to write performant code
  • 2
    @myss explain brains to a five year old
  • 2
    @electrineer explain why things have to be dumbed down tona 5 year old, why are they stupid.
  • 0
    Because in many cases webpages are created with hidden crypto mining system.
  • 2
    JavaScript, its all javascript.

    In the past, sites used to be served to you as is. You got the html, the css, your browser drawn it (some cpu), and that was it. Everything happened on the server.

    But that's also only possible for static websites, facebook chat or live updates would be impossible.

    Enter, javaScript. A program that runs on *your* computer to make things dynamic.

    Everytime you load a website now, you don't only get the html and css but also a few kilobytes (or MB these days) of software that you run and that does a lot of periodic things. Checks for updates to the website every x seconds, processes changes, sends your data to the servers as logs...

    We're talking tens or hundreds of timers, per site, constantly checking for changes or inputs. Which is all ran on the CPU.

    The worse the JS the more it drains, but what we get in exchange is web apps.
  • 0
    @Hazarth Yeah.. unfortunately. If I profile web pages that cause stress on the CPU, 60% of the stress is caused by JS..
Add Comment