I use bootstrap 4.6 and I have a custom select with 10-20 options
<select class="custom-select">
<option disabled="" selected=""></option>
<option value="1">a</option>
...
</select>
See demo: https://codepen.io/Lieroo/project/editor/XwPeNz#
When I open and close the select, the browser freezes for couple of seconds.
The performance recording in chromium edge shows
What's going on? it is a bug in chromium, or on bootstrap?
This is a known bug in Chromium based browsers on Windows related to Accessibility.
https://bugs.chromium.org/p/chromium/issues/detail?id=1187638
It will be fixed in Chrome 90+;
Until then you can run your chromium browser with -disable-renderer-accessibility
flag, e.g
"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --profile-directory=Default --disable-renderer-accessibility