Edit “Puppet Classes” and “Smart Class Parameters” extremely slow
Fixes #31990 - Optimize tooltip and popover initialization
Instead of iterating over all elements with tooltips or popovers and
initializing each one seperately, initialize them once with a selector
to identify which elements should have them. On pages with hundreds or
thousands of tooltips and popovers this could have a significant
performance impact on the page rendering.