morluto
47cd5e58f3
fix(website): stop the header links shifting after each page loads ( #17175 )
...
The theme switch stayed hidden until its translations loaded, and the
saved GitHub star count appeared only once the deferred page script ran.
Both arrived after the first paint and widened the right side of the
header, pushing the navigation links about 120 pixels left on every page.
Show the switch from the start whenever the theme script has marked the
root element, and hide it again only if its setup fails. Put the saved
star count in place with a small script right after the GitHub link, so
it is drawn with the first paint; the page script keeps labelling the
link and refreshing the count from GitHub.
2026-12-05 12:42:37 -05:00
..
2026-11-16 21:13:43 -05:00
2026-12-02 00:28:46 +00:00
2026-11-25 18:20:28 +00:00
2026-11-06 01:53:53 +08:00
2026-11-16 01:59:03 +08:00
2026-11-16 01:59:03 +08:00
2026-11-25 21:08:12 +00:00
2026-11-15 23:49:11 +08:00
2026-11-15 20:52:58 +08:00
2026-11-25 08:28:16 -05:00
2026-11-25 08:28:16 -05:00
2026-11-26 19:56:07 +08:00
2026-11-27 05:21:32 +08:00
2026-11-25 08:28:16 -05:00
2026-11-26 19:15:54 -05:00
2026-11-25 03:51:47 +00:00
2026-11-22 01:40:30 +00:00
2026-11-16 03:56:10 +08:00
2026-11-16 04:27:07 +08:00
2026-11-25 18:20:28 +00:00
2026-11-16 10:59:18 +08:00
2026-10-15 16:54:58 +08:00
2026-11-14 13:21:13 +08:00
2026-11-21 17:41:50 +00:00
2026-11-25 18:20:28 +00:00
2026-11-25 18:20:28 +00:00
2026-10-23 10:39:28 +00:00
2026-11-25 18:20:28 +00:00
2026-11-25 18:20:28 +00:00
2026-11-11 17:42:53 -05:00
2026-11-25 18:20:28 +00:00
2026-11-20 17:54:30 +00:00
2026-12-01 16:35:44 +00:00
2026-11-21 18:41:30 -05:00
2026-11-21 18:41:30 -05:00
2026-12-01 18:10:12 +00:00
2026-11-24 09:23:14 +00:00
2026-11-18 14:48:37 -05:00
2026-12-05 12:42:37 -05:00
2026-11-14 13:21:13 +08:00
2026-11-14 05:27:07 +08:00
2026-11-23 12:17:44 +00:00
2026-11-14 13:21:13 +08:00
2026-11-02 02:13:32 +08:00
2026-12-01 18:10:12 +00:00
2026-11-16 00:39:50 +08:00
2026-11-22 00:00:18 +00:00
2026-11-14 13:21:13 +08:00
2026-12-01 16:35:44 +00:00
2026-12-01 16:35:44 +00:00
2026-11-14 13:21:13 +08:00
2026-11-14 13:21:13 +08:00
2026-12-01 05:32:33 +00:00
2026-12-01 18:10:12 +00:00
2026-11-25 18:20:28 +00:00
2026-12-01 18:10:12 +00:00
2026-11-25 08:28:16 -05:00
2026-12-01 18:10:12 +00:00
2026-12-01 18:10:12 +00:00
2026-11-25 21:08:12 +00:00
2026-11-26 19:15:54 -05:00
2026-11-14 13:21:13 +08:00
2026-11-14 04:08:37 -05:00
2026-11-23 17:44:41 -05:00
2026-11-26 19:15:54 -05:00
2026-11-23 02:33:17 +00:00
2026-11-16 08:42:11 +08:00
2026-11-14 05:27:07 +08:00
2026-12-01 16:35:44 +00:00
2026-10-25 07:31:42 +08:00
2026-11-25 18:20:28 +00:00
2026-11-14 05:36:39 -05:00
2026-11-03 14:47:49 +08:00
2026-11-11 17:39:19 +08:00
2026-11-14 05:27:07 +08:00
2026-11-14 05:27:07 +08:00
2026-11-26 23:25:32 +08:00
2026-12-02 13:39:47 +08:00
2026-12-01 18:10:12 +00:00
2026-11-11 16:37:48 -05:00
2026-11-15 21:22:13 -05:00
2026-12-01 02:19:09 +00:00
2026-11-16 00:04:05 +08:00
2026-11-18 21:49:15 +08:00
2026-11-18 15:33:46 -05:00
2026-11-18 15:33:46 -05:00
2026-11-14 13:21:13 +08:00
2026-11-20 17:58:27 -05:00
2026-11-14 05:27:07 +08:00
2026-11-17 16:34:22 -05:00
2026-11-14 13:21:13 +08:00
2026-11-17 14:16:24 -05:00
2026-11-20 17:58:27 -05:00
2026-11-07 11:12:43 +08:00
2026-11-30 20:35:43 +08:00
2026-10-20 02:01:00 +08:00
2026-10-24 09:57:15 +08:00
2026-11-15 21:53:53 -05:00
2026-11-17 18:48:24 -05:00
2026-11-17 18:48:24 -05:00
2026-11-19 23:22:53 -05:00
2026-12-01 18:10:12 +00:00
2026-11-15 19:35:03 +08:00
2026-11-15 19:35:03 +08:00
2026-10-19 10:52:55 +08:00
2026-11-25 18:20:28 +00:00
2026-12-01 18:10:12 +00:00
2026-11-15 21:53:53 -05:00
2026-10-24 09:57:15 +08:00
2026-11-21 22:29:33 +01:00
2026-11-14 05:27:07 +08:00
2026-11-18 23:05:54 +08:00
2026-11-16 08:06:35 +08:00
2026-10-23 02:25:04 +08:00
2026-11-11 16:37:48 -05:00
2026-10-23 22:13:12 +08:00
2026-11-15 21:53:53 -05:00
2026-10-19 20:04:00 +08:00
2026-10-19 11:37:41 +08:00
2026-12-04 07:00:27 +08:00
2026-11-15 21:53:53 -05:00
2026-11-24 23:25:08 -05:00
2026-11-16 07:56:52 +08:00
2026-10-26 15:41:03 +08:00
2026-11-22 09:26:24 +00:00
2026-11-23 02:33:17 +00:00
2026-11-30 22:39:39 +08:00
2026-11-21 18:53:53 -05:00
2026-10-20 02:01:00 +08:00
2026-11-23 00:11:55 +00:00
2026-11-18 15:33:46 -05:00
2026-11-14 11:48:19 +08:00
2026-11-18 17:54:40 -05:00
2026-10-19 09:14:00 +08:00
2026-11-25 18:20:28 +00:00
2026-11-19 03:32:08 +00:00
2026-11-14 13:21:13 +08:00
2026-11-24 10:46:14 -05:00
2026-11-12 23:58:18 -08:00
2026-11-16 04:49:19 +08:00
2026-11-16 00:39:50 +08:00
2026-11-17 14:16:24 -05:00
2026-11-26 01:24:43 +08:00
2026-12-01 16:35:44 +00:00
2026-11-18 22:07:57 -05:00
2026-11-16 08:45:01 +08:00
2026-11-16 04:49:19 +08:00
2026-11-14 13:21:13 +08:00
2026-11-16 04:27:07 +08:00
2026-11-30 19:18:16 +08:00
2026-11-14 13:21:13 +08:00