🚀 Launch countdown

9 December 2026

PageSpeed

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

  1. Batch DOM reads and DOM writes rather than alternating them in loops.
  2. Avoid reading layout properties such as offsetHeight or getBoundingClientRect inside loops.
  3. Use CSS transitions or transforms for visual changes where possible.
  4. 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

Findings library, by category.