We've noticed excessive "resize" events in some app usage that came when jquery-ui.resizable was in use on the page. Because these event handlers are added with jQuery, the "resize" events that resizable fires will be bubbled to the window.
This results in a lot of unnecessary work — the select-component does not need to call updateDropdownLayout unless the window size has actually changed.
Another option would have been to simply use window.addEventListener('resize', which, because it is not attached using jQuery, won't receive the jquery-bubbled events. But this seems the more conservative change.
We've noticed excessive "resize" events in some app usage that came when jquery-ui.resizable was in use on the page. Because these event handlers are added with jQuery, the "resize" events that resizable fires will be bubbled to the window.
This results in a lot of unnecessary work — the select-component does not need to call
updateDropdownLayout
unless the window size has actually changed.