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

Fix JS hooks on really slow connections #37

Open
aaronpk opened this issue May 15, 2019 · 0 comments
Open

Fix JS hooks on really slow connections #37

aaronpk opened this issue May 15, 2019 · 0 comments

Comments

@aaronpk
Copy link
Owner

aaronpk commented May 15, 2019

When the HTML of the page loads super slow, the JS for interactions like marking as read or favoriting attaches too slowly. The HTML of the page hasn't finished downloaded yet but the browser still starts rendering content.

I need a way to start attaching events to DOM elements as soon as they appear in the document rather than waiting for the full document to be rendered.

Possible things to look into: intersection observer, mutation observer.

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