The HTML and JS scripts might just be a few megabyte, but those are just instructions that have to be converted to something useful first. The HTML needs to create the Document Object Model and the Javascript gets compiled to executable machine code. The JS code will also fetch data from an endpoint and create more in-memory objects.
If you use your browsers development tools and take a look at the heap memory you’ll see that this empty thread already uses like 100 MB in total.
Latest Answers