discourse/app
David Taylor c82094cd9d
PERF: Refactor slide-in menu sizing for improved performance (#20377)
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%).
2023-02-21 13:55:38 +00:00
..
assets PERF: Refactor slide-in menu sizing for improved performance (#20377) 2023-02-21 13:55:38 +00:00
controllers DEV: Enable unless cops 2023-02-21 10:30:48 +01:00
helpers DEV: Replace #pluck_first freedom patch with AR #pick in core (#19893) 2023-02-13 12:39:45 +08:00
jobs DEV: Enable unless cops 2023-02-21 10:30:48 +01:00
mailers DEV: Replace #pluck_first freedom patch with AR #pick in core (#19893) 2023-02-13 12:39:45 +08:00
models DEV: Enable unless cops 2023-02-21 10:30:48 +01:00
serializers UX: Release new user profile navigation for sidebar compatibility (#20134) 2023-02-21 10:16:16 +08:00
services DEV: Enable unless cops 2023-02-21 10:30:48 +01:00
views UX: Style edits (#19927) 2023-02-15 11:02:16 -06:00