Avoid Long Main-Thread Tasks
Main-thread tasks taking longer than 50 ms that block input handling.
Why it matters
Tasks over 50 ms block user input and delay event handlers, directly hurting responsiveness and Interaction to Next Paint.
How to fix it
- Break long tasks into smaller chunks so the browser can process input between them.
- Defer non-urgent work away from active interaction paths.
- Profile traces to find the exact functions causing long tasks.
- Move heavy synchronous work into a web worker.
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
- Minimize Main-Thread Work
- Optimize DOM Size
- Font Display
- Third Parties
- LCP Breakdown
- 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.