Lessons

Unused JavaScript code

Plug-in code should be connected where it is in demand, and not on every page of the site. An indicator that the plugin is not used is that more than 90% of its code is not used on the page.

If your site is more than 2 years old, then for sure you have accumulated a large amount of unused JavaScript code. Modifying the site, programmers forget to delete outdated code. Therefore, it is worth periodically cleaning your JavaScript files from it.

Also, ready-made website templates contain a wide range of functionality. Usually sites use no more than 50% of it. Therefore, JavaScript code for unused functions can be deleted.

Such cleaning not only speeds up the loading and performance of pages, but also makes your code cleaner. And this speeds up the work of programmers.

Our [free online tool] (/tools/clean-js) automates the cleaning process. Also PRO access allows you to get clean files after checking all the pages of the site.

Sample code that is not used:

<html>
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script>

            window.addEventListener("load", onLoad);
            function onLoad() {
                // Эта функция будет вызвана при загрузке страницы
            }
            function someFunction() {
                // Эта функция будет не используется и её можно удалить, чтобы скоратить размер страницы
            }
        </script>
    </head>
    <body></body>
</html>

PRO subscription for working with the service

Promo
To prepare a commercial offer.
190 ₽
50 pages for 10 days
  • 1 page gives 1 tool launch Checking the page.
  • Purchased for a specific site
  • Restrictions on other tools remain the same
PRO subscription
For regular work on a site or a group of sites.
1 580 ₽
3,500 pages per week. The subscription period is 1 month.
Wallet
A separate page balance that complements the PRO subscription balance.
190 ₽
Number of pages
  • An active PRO subscription is required to use the wallet balance
We use cookies. By continuing to use the site, you agree to the processing of personal data in accordance with privacy policy. I agree