admin管理员组文章数量:1297073
Engineering incredibly large webapps, do we have any top or limit or best practice for filesizes in these large projects? The biggest I have seen is probably twitter/gmail which had around 1mb (Minified) javascript - but how much can a browser handle?
What if there is a large app with 5mb, 10mb or 100mb javascript minified? When does it severely affect performance or memory usage (Even if the app is very well written and optimized) - can the jit handler take whatever? Are there any diminishing returns?
Is there any real example of apps beeing this big, except for the usual suspects such as gmail, twitter, facebook, googledocs, etc.
Thanks!
Engineering incredibly large webapps, do we have any top or limit or best practice for filesizes in these large projects? The biggest I have seen is probably twitter/gmail which had around 1mb (Minified) javascript - but how much can a browser handle?
What if there is a large app with 5mb, 10mb or 100mb javascript minified? When does it severely affect performance or memory usage (Even if the app is very well written and optimized) - can the jit handler take whatever? Are there any diminishing returns?
Is there any real example of apps beeing this big, except for the usual suspects such as gmail, twitter, facebook, googledocs, etc.
Thanks!
Share Improve this question asked Apr 12, 2013 at 11:19 nephneph 7432 gold badges8 silver badges17 bronze badges 01 Answer
Reset to default 6As far as I know there is now such limit for JavaScript files, nor is there a limit at all for files of all kinds.
The only limit is the system you are running the web app on:
The browser will consume as much CPU and RAM as it needs to handle your web app. The internet connection is a bottleneck, too.
Although a web application can grow to a quite big size, there is no such real (productive used) example of an application serving JavaScript files up to 100 MB in size - I mean, think about it, 100 MB size for a JavaScript file (!), nobody would visit the page, stay on the page and wait till the download of the JavaScript files is finished and the browser's JavaScript engine processed this file.
But feel free to try write a JavaScript file which is 100 MB in size which does several tasks such as doing a console.log()
a thousand times and report it here to us what happened then.
Some nostalgy: I found this bug report from Mozilla, it's nearly 13 years old.
本文标签: Is there a max javascript filesizewhat can browsers handleStack Overflow
版权声明:本文标题:Is there a max javascript filesize, what can browsers handle? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741642798a2390015.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论