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.

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

👋 Kindness is contagious

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

Okay