Skip to content
Nazmul Nikhil
Menu

Minimize Main-Thread Work in PageSpeed Insights

PageSpeed breaks down where the main thread spends its time: scripts, style and layout, rendering. Here's how to read it and reduce each category.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
Minimize Main-Thread Work in PageSpeed Insights
Photo: Kieran Wood on Unsplash

In short

This diagnostic splits the browser's main-thread time into categories: script evaluation, style and layout, rendering, parsing HTML and CSS, script parsing and compilation, garbage collection and other. It tells you what kind of work dominates. Script evaluation is usually the biggest; if style and layout are large, look at DOM size and forced reflows.

When it passes, PageSpeed lists this as "Minimizes main-thread work — X s."

Category to fix

Category Look at
Script evaluation Reduce JavaScript execution time, 3rd parties
Style and layout Optimize DOM size, Forced reflow
Rendering Non-composited animations, large paint areas
Parse HTML and CSS Huge HTML or CSS files

This guide isn't affiliated with or endorsed by Google.

Sources and references

TAGSPageSpeed InsightsMinimize main-thread workMain thread work breakdownStyle and layout
Nazmul Nikhil

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.

Need help with this?

Get it fixed with Core Web Vitals

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Page Speed & Core Web Vitals posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com