Reduce JavaScript Execution Time
Total time spent parsing, compiling, and executing JavaScript.
Why it matters
Heavy JavaScript execution ties up the main thread and delays responses to user input such as taps, clicks, and scrolling.
How to fix it
- Target the scripts accounting for the highest execution time first.
- Defer non-essential work until after initial load and user interaction.
- Offload heavy computation to a web worker where appropriate.
- Remove unneeded scripts or heavy dependencies.
Where to find it
This finding is reported in the PageSpeed tab, and appears in Findings under the matching severity.
A term you don't recognise is defined in the glossary.
Other pagespeed findings
- Document Request Latency
- LCP Request Discovery
- Render Blocking Requests
- Network Dependency Tree
- Use Efficient Cache Lifetimes
- Layout Shift Culprits
- Improve Image Delivery
- Forced Reflow
- Legacy JavaScript
- Duplicated JavaScript
- Avoid Enormous Network Payloads
- Minify CSS
- Minify JavaScript
- Reduce Unused CSS
- Reduce Unused JavaScript
- Minimize Main-Thread Work
- Optimize DOM Size
- Font Display
- Third Parties
- LCP Breakdown
- Avoid Long Main-Thread Tasks
- User Timing Marks and Measures
- INP Breakdown
- Optimize Viewport for Mobile
- Avoid Non-Composited Animations
- Image Elements Have Explicit Width and Height
Findings library, by category.