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

Batch DOM checks for fallback positions #227

Open
jamesnw opened this issue Aug 2, 2024 · 0 comments
Open

Batch DOM checks for fallback positions #227

jamesnw opened this issue Aug 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jamesnw
Copy link
Contributor

jamesnw commented Aug 2, 2024

Per @mmalerba -

"I'm not very familiar with @floating-ui/dom, maybe its doing some intelligent batching already, but if not, its something we could consider doing manually. i.e. add the styles for a new candidate position for every target and then check the overflow of all of them at once, repeat the process for any that don't have a match yet"

#202 (comment)

This seems like a potential for improved performance, especially when there are multiple anchored elements with position fallback.

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

No branches or pull requests

1 participant