Forced Reflow
Scripts that trigger synchronous layout recalculations mid-execution.
Why it matters
Reading layout metrics and writing style changes repeatedly forces synchronous layout recalculations, stalling script execution and harming responsiveness.
How to fix it
- Batch DOM reads and DOM writes rather than alternating them in loops.
- Avoid reading layout properties such as offsetHeight or getBoundingClientRect inside loops.
- Use CSS transitions or transforms for visual changes where possible.
- Profile scripts in browser developer tools to pinpoint forced layout calls.
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
- 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
- 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.