IgniteUI / igniteui-webcomponents

Ignite UI for Web Components is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.
https://www.infragistics.com/products/ignite-ui-web-components
Other
113 stars 2 forks source link

perf(core): Improved LTR-RTL detection #1240

Closed rkaraivanov closed 2 weeks ago

rkaraivanov commented 3 weeks ago

Changed isLTR to use the new :dir(ltr|rtl) selector, instead of the getComputedStyle call which triggers a style reflow. After some prelimenary benchmarks it seems to be ~80% faster for repeated calls.

This is already baseline for our target browsers but I had to updated the playwright package version so it can support the new syntax. As an added bonus since the new version supports URL.canParse I've added a test for the input as well.