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

Using the same ResizeObserver instance for all hooks for better performance #84

Closed
DanielGiljam opened this issue Sep 2, 2021 · 1 comment

Comments

@DanielGiljam
Copy link

Have you considered using the same ResizeObserver for all hooks instead of creating a separate ResizeObserver instance for each hook? Multiple observers each observing one element seems to be less performant than one observer observing multiple elements (see WICG/resize-observer#59 (comment)).

@ZeeCoder
Copy link
Owner

ZeeCoder commented Sep 2, 2021

Yes, feel free to chip in this discussion:
#80

@ZeeCoder ZeeCoder closed this as completed Sep 2, 2021
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

2 participants