JavaScript Execution Time


How to Fix

In order to pass this test you have to decrease the JavaScript code execution time. You can do this by:

- implementing code-splitting: split the JavaScript bundle into smaller files so that only the critical code is executed during initial page load.

- removing unused code: unused code can often be inherited from previous versions of your site, and/or imported from other modules that aren't referenced anymore.

- reduce network trips by caching your code with the PRPL pattern: preload the most important resources, render the initial route as soon as possible, pre-cache remaining assets and lazy load other routes and non-critical assets.

- minifying and compressing the JavaScript code