📜 ⬆️ ⬇️

Practical JS: we accelerate everything that moves

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.

Users hate waiting: Give them everything at once. Let us then consider several methods that will help you to “comb” your website. Here are all the working examples that will be given below.
')
read further on webo.in →

Source: https://habr.com/ru/post/31398/


All Articles