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

The networkIdleCallback can only be achieved through "sw"? #14

Open
imtaotao opened this issue Dec 6, 2020 · 1 comment
Open

The networkIdleCallback can only be achieved through "sw"? #14

imtaotao opened this issue Dec 6, 2020 · 1 comment

Comments

@imtaotao
Copy link

imtaotao commented Dec 6, 2020

I found a new api PerformanceObserver, it support fetchEnd event, maybe we can achieve it by a new method?

const observer = new PerformanceObserver((list, observer) => {
  console.log(list.getEntries());
});
observer.observe({ entryTypes: ['resource'] });
@imtaotao imtaotao changed the title Can only be achieved through "sw"? The networkIdleCallback can only be achieved through "sw"? Dec 6, 2020
@pastelsky
Copy link
Owner

@imtaotao I did not find documentation for fetchEnd that you mention. Could you elaborate more?
I'd love to remove the requirement for service workers here, if possible.

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

3 participants
@pastelsky @imtaotao and others