Site Performance: Removing Unused JavaScript

2 min read
When you check your site on Google PageSpeed Insights, you may be prompted to remove unused JavaScript files. Some of these files may come from third-party code that you have added, whereas others are a vital part of your Wix site. 
In this article, learn more about:

Essential JavaScript files in Wix sites

The PageSpeed Insights results page may display opportunities to remove files and unused JavaScript. However, some files are part of the structure of your Wix site. Any code delivered through static.parastorage.com is packaged by Wix, and therefore crucial to your site's structure.
We are consistently optimizing these files, and using methods like code splitting to ensure ideal chunk sizes. While Google may advise you to remove these files, they are a vital part of your site, so you cannot modify, manipulate, or delete them. Learn more about unused JavaScript and PageSpeed Insights
Note:
When you add apps and components to a page, JavaScript files are automatically added for them. As this can affect the loading speed, we recommend spacing apps and components between different site pages where possible. Learn about other ways to create a performance-focused site

JavaScript files from third-parties

As well as essential files from your Wix site, Google may also flag other unused JavaScript, which can come from third-party code that is not optimized. We recommend identifying these files, and reviewing them to check whether they are necessary to your site.  
If you find that the files are no longer necessary, you can remove them, or replace them with an optimized alternative. Learn more about removing unused JS files

Did this help?

|