mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 11:58:27 +00:00
Calling `window.getComputedStyle` during initialization causes the browser to pause and 'Recalculate Style'. On my machine, this adds about 7ms to boot time. Instead, we can check for the `rtl` class on the html element, which is added by the server, and doesn't require computing styles.