In short
Forced reflow happens when JavaScript changes the page and then immediately reads a size or position (for example offsetHeight or getBoundingClientRect()), so the browser must recalculate layout on the spot. Repeated in a loop, this is called layout thrashing and makes long tasks. The insight lists the functions responsible. The fix is to read all measurements first, then make all changes.
This is a developer-level insight. Site owners mostly need to know which script to report.
Example
// Slow: write, read, write, read...
items.forEach(el => {
el.style.width = box.offsetWidth + "px";
});
// Better: read once, then write
const w = box.offsetWidth;
items.forEach(el => { el.style.width = w + "px"; });What to do
Note the script named in the insight (often a theme, slider or chat widget).
If it's third-party, update it or replace it; you can't fix their code.
In your own code, batch reads before writes, and use
requestAnimationFramefor visual updates.
WordPress, Shopify, Webflow and Wix: most cases come from plugins, apps or widgets. Disable them one at a time to confirm, then look for a lighter alternative.
This guide isn't affiliated with or endorsed by Google.
Related issues
Sources and references
Chrome for Developers, Forced reflow

About the author
Nazmul Nikhil
Head of SEO & Assistant Manager, Digital Marketing at Notionhive
SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.



