mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 13:39:36 -06:00
c82094cd9d
Using Javascript to read and recalculate sizing is prone to causing 'forced reflows', which are very expensive, especially on slower devices. This PR refactors the slide-in menus so that all of the height calculation is done using CSS. This is made possible by the new dvh (dynamic view height) units and env(safe-area-inset-bottom), both of which are supported on all of our target browsers. In tests on a moto g50, on a sidebar with 16 categories, 15 tags, and 2 chat channels, this improves the sidebar opening time by around 50ms (6%). |
||
---|---|---|
.. | ||
common | ||
desktop | ||
mobile | ||
vendor | ||
admin.scss | ||
color_definitions.scss | ||
common.scss | ||
desktop_rtl.scss | ||
desktop.scss | ||
embed.scss | ||
ember_cli.scss | ||
mobile_rtl.scss | ||
mobile.scss | ||
publish.scss | ||
qunit-custom.scss | ||
qunit.scss | ||
wcag.scss | ||
wizard.scss |