DEV Community

Meghan (she/her)
Meghan (she/her)

Posted on

2 2

Why do Web browsers famously use so much RAM?

Is it because every character in Strings are UTF-16 and every Number is a float64, the sheer number of objects in the average page, or because JS is a VM language? Something else?

@see
https://tc39.github.io/ecma262/#sec-terms-and-definitions-string-value
https://tc39.github.io/ecma262/#sec-terms-and-definitions-number-value

Top comments (1)

Collapse
 
rodeone2 profile image
robin deatherage

The shear complexity of fetching resources, parsing them, tokenizing them, node traversing the HTML Nested Div's and to fetch and arrange all HTML tags and their data for building GUI Widgets from its Tags, class's and ID's, CSS Rules, Attributes, Media files and converting JavaScript is all a massive undertaking. Then JavaScript which consist of an entire computer language to set after render and pre-set triggers is just as massive. For over thirty years now HTML Rendering Engines have been transformed into massive libraries all being added to at times daily likewise.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay