Skip to main content
AuditJet

JavaScript Performance · AuditJet Glossary

Main Thread

The single thread in a browser where JavaScript execution, style calculations, layout, painting, and compositing occur.

The browser's main thread is a single-threaded environment — only one task can run at a time. JavaScript execution, DOM manipulation, CSS calculations, and layout all compete for main thread time. Heavy JavaScript is the primary reason for a congested main thread, causing high TBT and INP scores. Web Workers can offload computation to background threads to keep the main thread free.

Frequently asked questions

What is Main Thread?

The single thread in a browser where JavaScript execution, style calculations, layout, painting, and compositing occur.

How does AuditJet measure Main Thread?

AuditJet runs automated Google Lighthouse audits that surface Main Thread scores alongside actionable fix guidance. You can track Main Thread trends across all your pages and receive alerts when the metric regresses.

Monitor Main continuously

AuditJet tracks Core Web Vitals on a schedule with revenue impact alerts — powered by Google Lighthouse and Google PageSpeed Insights.

Start Free
Main Thread — Definition | AuditJet Glossary | AuditJet