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

better jquery selectors on loooong lists #2576

Merged
merged 2 commits into from
Mar 26, 2021

Conversation

rogeliotg
Copy link
Contributor

@rogeliotg rogeliotg commented Feb 26, 2021

jquery selectors are somehow optimized on Chrome but not on Edge.
Trying to find into 100000 options list dies on Edge, so I propose use children instead

jquery selectors are somewhat optimized on Chrome but not on Edge.
Trying to find into 100000 options list dies on Edge, so I propose use children instead
@caseyjhol
Copy link
Member

caseyjhol commented Feb 27, 2021

This doesn't work if the first option is inside an optgroup. How does this compare?

firstOption = this.$element[0].options[0]

@caseyjhol caseyjhol merged commit 1939298 into snapappointments:v1.14-dev Mar 26, 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

Successfully merging this pull request may close these issues.

2 participants