why do web browsers use so much ram, while the average size of an entire webpage is 2mb?

800 views

From what I understand, one could cache 100 web pages (obviously, 2mb is average, but there are much smaller and much larger than that) in about 200mb. 1GB could cache literally 500 web pages.

How come web browsers use so much ram then?

In: 3000

25 Answers

Anonymous 0 Comments

First of all, Chrome separates out each tab into its own memory space, to ensure that one shitty website doesn’t freeze up the entire browser, or even your entire computer. Second of all, and more importantly, *Javascript* is why. The code that runs the page may be 2 MB, but badly optimized software can bloat out to arbitrary size in runtime, and since the website maintainer doesn’t pay for your computer, they have little incentive to ensure it’s efficient.

You are viewing 1 out of 25 answers, click here to view all answers.