Not TestedTesting not done, may not work properly
Performance

Long Tasks API

Detect UI main-thread execution tasks that exceed 50 milliseconds.

Checking support...
Advertisement

Interactive Input Workspace

Ready for input

Web API Execution Output

Result output will be displayed here after processing...

Native JavaScript Code Example (Zero Libraries)

const obs = new PerformanceObserver(list => list.getEntries().forEach(console.log));
obs.observe({ entryTypes: ['longtask'] });

About the Long Tasks API Web API

Long Tasks API reports tasks that take 50ms or longer to execute on the main thread.

Specification:W3C & WHATWG Web API Standard
Sponsored Content