AuditJet

JavaScript Performance · AuditJet Glossary

Long Task

A JavaScript task that takes longer than 50ms to complete and blocks the browser's main thread, preventing user interaction.

Long tasks are the primary cause of high INP and TBT. When a long task is running, the browser cannot respond to user input (clicks, taps, key presses) until the task completes. Chrome DevTools and Lighthouse identify long tasks via the Performance panel and the Long Tasks API. Breaking long tasks into smaller chunks with scheduler.yield(), setTimeout(), or requestIdleCallback() is the primary fix.

Monitor Long continuously

AuditJet tracks Core Web Vitals on a schedule with revenue impact alerts.

Start Free
Long Task — Definition | AuditJet Glossary | AuditJet