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

Should cache "clientBounds" until known that are actually changed #61

Open
kikonen opened this issue Jan 30, 2020 · 1 comment
Open
Labels

Comments

@kikonen
Copy link
Owner

kikonen commented Jan 30, 2020

Every keypress & al. is now querying "client bounds" to do calculations.

Problem: Querying client bounds is expensive, since it triggers browser to do actual relayout and calculating those values.

@kikonen kikonen added the medium label Jan 30, 2020
@kikonen
Copy link
Owner Author

kikonen commented May 16, 2020

https://developers.google.com/web/updates/2016/04/intersectionobserver

might help on this

EDIt: No it won't, ResizeObserver would help with dimension changes, but what helps with "position" changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant