- The download time needs to be improved
You can do that with the help of using small bundles that cause lower memory usage and can reduce CPU costs.
- The execution time needs to be improved
Here you need to remember about Long Tasks that can keep thread busy. Try to avoid them.
- Don’t write large inline scripts
Avoid inlining script that is over 1 kB
In short, the download and execution time are the main bottlenecks for loading scripts in 2019. To find out more about other important issues to optimize them read the full article.
And read our blog to be always aware of everything that’s happening.