Let's say that the final bundle produced by webpack
is around ~15MB.
Besides slow loading for the first time on the site, are there any significant performance issues comparing to let's say 500KB bundle? (that has been uglified, or used.min npm packages)
JavaScript is parsed, compiled and executed in the main thread of the browser, which means the users have to wait for all this before they can interact with the website.
15MB is a lot of JS code.
There are tools for profiling the performance built in into the major web browsers, which you can check out.
You can learn more about this here: https://web.dev/bootup-time/ .
Performance implications include:
It's important to use the developer tools of your favorite browser to analyze the impact of your code. Be sure to remove any JS your site doesn't really need.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.