You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dialog opens very slow on slow devices (emulated via 6x CPU slowdown via browser DevTools) on a page with many DOM nodes.
Performance profiler indicates that a layout reflow is triggered.
Expected Behavior
Dialog opens smoothly on slow devices with many DOM nodes and does not trigger a layout reflow.
The text was updated successfully, but these errors were encountered:
@Mokkapps and I did some further research and found that if we rendered the large amount of DOM nodes outside of the app container, the performance significantly improved.
It seems the offending attributes, which cause the reflow are data-v-app="" aria-hidden="true" inert=""
What package within Headless UI are you using?
@headlessui/vue
What version of that package are you using?
1.7.19
What browser are you using?
Chrome
Reproduction URL
https://stackblitz.com/edit/vitejs-vite-snttsl
Describe your issue
Actual Behavior
Dialog opens very slow on slow devices (emulated via 6x CPU slowdown via browser DevTools) on a page with many DOM nodes.
Performance profiler indicates that a layout reflow is triggered.
Expected Behavior
Dialog opens smoothly on slow devices with many DOM nodes and does not trigger a layout reflow.
The text was updated successfully, but these errors were encountered: