Re:Why do Google webapps use so many iframes (and web workers)?
by fabrice_d on Wednesday October 17, 2018 @09:11PM
(#18245171)
When you have a single "top level browsing context", ie. a window, iframe or worker, it's mostly impossible to unload JS code that had been loaded. By using iframes and workers you can actually control the unloading of useless code. Workers of course also help with offloading the main thread.
The overhead of allocating a new js runtime is not that high in modern browsers anymore so that's an acceptable trade off.
[ Parent
| on HN ]
There are no comments on this comment yet.