Minimize Main-Thread Work
Breakdown of browser main-thread tasks such as script, layout, and paint.
Why it matters
Heavy main-thread work makes pages feel sluggish during load and interaction, even when network transfer times are fast.
How to fix it
- Identify which main-thread category dominates before making changes.
- Simplify DOM structure and styles if layout or style calculation dominates.
- Trim or split script execution if script evaluation dominates.
- Break up long main-thread tasks into smaller chunks.
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
- Reduce JavaScript Execution Time
- 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.