Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change for page loading tracking #3

Open
mlantz opened this issue Jul 8, 2024 · 0 comments
Open

Change for page loading tracking #3

mlantz opened this issue Jul 8, 2024 · 0 comments

Comments

@mlantz
Copy link
Member

mlantz commented Jul 8, 2024

const observer = new PerformanceObserver((list) => {
  list.getEntries().forEach((entry) => {
    console.log(`${entry.name}: domComplete time: ${entry.domComplete}ms`);
    console.log(`${entry.name}: domContentLoadedEventEnd time: ${entry.domContentLoadedEventEnd}ms`);
  });
});

observer.observe({ type: "navigation", buffered: true });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant