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

Support deactivating finders with page visibility API #8

Open
skeggse opened this issue May 31, 2019 · 0 comments
Open

Support deactivating finders with page visibility API #8

skeggse opened this issue May 31, 2019 · 0 comments

Comments

@skeggse
Copy link
Contributor

skeggse commented May 31, 2019

When a user navigates away from the page (by visiting a different tab, and hiding the current tab), it may sometimes be useful to deactivate some or all finders. Finders query the DOM on a timer, and it's harder for browser developers justify resource optimization on pages that are actively using normal timers as well as event-driven hooks like MutationObservers. While the page may update in the background, some page-parser-tree use-cases do not require monitoring of the page while it's in the background. This may help improve resource consumption on resource-constrained devices.

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