Note: below is the translation of the article “Speed Up Your Javascript Load Time” , in it the author examines some of the most effective techniques and action methods for reducing the time it takes JavaScript to work on a client.Most of them are well known, but in the article it’s important not just to list them, but a general approach to solving the problem of optimizing load time.Further my comments in italics.
JavaScript is becoming more and more popular. Every self-respecting website tries to apply it at least somewhere: be it loading dynamic data via AJAX , or some special ( visual ) effects. Unfortunately, you have to pay for everything: you have to use “heavy” JavaScript libraries, which add tens or even hundreds of kilobytes of code to the size of your page.