Skip to content

Integrate PerformanceObserver for detecting when need to delay loading chunks or decrease workers count #238

@zardoy

Description

@zardoy

eg can monitor the number of events per second

const observer = new PerformanceObserver((list) => {
  const entries = list.getEntries();
  entries.forEach((entry) => {
    console.log(entry);
  });
});

observer.observe({ entryTypes: ['longtask'] });

if there is event, loading should be delayed. also worth monitor event events...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions