MdSelect and MdAutocomplete slow initial render w/ large number of options
See original GitHub issueFor both MdSelect
and MdAutocomplete
, the initial render of the component (in the closed state) is very slow even though the panels are closed. We should ensure that any work related to the options is deferred until the panel is opened.
To reproduce this, simply modify the demos to render 500 md-select
each with 500 options each (there is no problem if there are 500 selects with 1 option each).
Issue Analytics
- State:
- Created 6 years ago
- Reactions:21
- Comments:23 (12 by maintainers)
Top Results From Across the Web
Directives > mdAutocomplete - AngularJS Material
Parameter Type Description
md‑search‑text expression expression A model to bind the search query text to.
md‑selected‑item object object A model to bind the selected item...
Read more >mat autocomplete is too slow while loading large data
I was in the same situation and my solution was to limit the list to first N results. So the code looks like...
Read more >Improving render of Angular material select and autocomplete ...
This helps up in displaying large lists of elements performantly by only rendering the items that fit on-screen. Loading hundreds of elements ...
Read more >Angular Material - Quick Guide - Tutorialspoint
The md-autocomplete, an Angular Directive, is used as a special input control with an inbuilt dropdown to show all possible matches to a...
Read more >Supplement other js/css files · 8f7db83c5c - xstatic-angular ...
AngularJS-Material-Mocks. *. * Developers interested in running their own custom unit tests WITH angular-material.js loaded.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m running into this same issue with Select and cannot find a workaround. If I have 100s of select options the view hangs on load (setting values in onInit). Anyone found a workaround?
Any news on this?