mirror of
https://github.com/discourse/discourse.git
synced 2025-03-01 21:58:57 +08: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.