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
..
2022-11-09 20:20:34 +02:00
2022-12-13 12:01:48 +01:00
2019-02-26 21:40:17 -05:00
2022-10-12 16:05:42 +02:00
2023-02-21 10:15:49 +01:00
2016-03-27 09:29:27 -07:00
2020-10-15 14:42:42 +11:00
2023-01-19 12:48:58 -05:00
2022-05-18 15:55:40 +02:00
2022-02-01 11:18:13 -03:00
2023-02-21 10:15:49 +01:00
2022-10-12 15:31:59 +02:00
2023-02-15 11:02:16 -06:00
2020-08-03 22:57:10 -04:00
2022-10-13 16:39:52 +03:00
2022-09-27 14:47:13 -04:00
2023-02-21 10:15:49 +01:00
2023-02-20 15:14:54 +01:00
2023-01-20 13:30:39 +11:00
2021-09-09 11:01:56 -04:00
2020-08-03 22:57:10 -04:00
2023-01-30 14:07:08 +01:00
2022-10-12 15:31:59 +02:00
2022-10-12 15:31:59 +02:00
2020-08-03 22:57:10 -04:00
2022-10-12 15:31:59 +02:00
2023-02-07 12:24:57 -03:00
2023-02-07 12:24:57 -03:00
2023-02-21 10:15:49 +01:00
2023-02-21 10:15:49 +01:00
2022-10-12 15:31:59 +02:00
2022-12-19 18:56:51 -05:00
2023-02-07 12:24:57 -03:00
2023-02-21 13:55:38 +00:00
2023-02-21 10:15:49 +01:00
2023-02-21 10:15:49 +01:00
2022-10-12 16:05:42 +02:00
2023-02-21 10:15:49 +01:00
2022-10-25 14:45:37 -04:00
2023-02-21 10:15:49 +01:00
2022-10-12 16:05:42 +02:00
2022-10-12 15:31:59 +02:00
2018-04-09 15:14:50 +08:00
2022-10-25 14:45:37 -04:00
2022-09-15 16:54:08 +02:00
2023-02-21 10:15:49 +01:00
2023-01-27 12:14:29 -08:00
2022-04-27 16:36:08 +03:00
2020-08-03 22:57:10 -04:00
2022-09-21 09:03:40 +10:00
2023-02-01 14:21:15 +03:00
2022-11-10 18:43:37 -05:00
2022-11-22 05:32:43 +08:00
2023-02-16 15:59:09 +11:00
2023-02-07 13:44:07 -05:00
2022-10-12 15:31:59 +02:00
2022-08-17 09:39:28 +08:00
2023-02-21 10:15:49 +01:00
2023-02-21 10:15:49 +01:00
2020-08-03 22:57:10 -04:00
2023-02-20 15:14:54 +01:00
2022-11-15 17:36:08 +02:00
2023-01-23 14:28:55 -05:00