From e8a3368226f0c38a905bf5040bd43cc2cc19671b Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Fri, 28 Nov 2025 18:36:47 -0300 Subject: [PATCH] docs: Reduce layout shift when navigating between pages (#43758) This is still not perfect, but it reduces the shift that happens when navigating between pages that have and don't have the table of contents. It also tries to reduce the theme flicker that happens by moving its loading to an earlier moment. Release Notes: - N/A --- docs/theme/index.hbs | 75 +++++++++++++++++++++-------------------- docs/theme/page-toc.css | 12 +++++++ docs/theme/page-toc.js | 12 ++++++- 3 files changed, 62 insertions(+), 37 deletions(-) diff --git a/docs/theme/index.hbs b/docs/theme/index.hbs index 8ac33ea0d7b2e3ae1730a3bc3e210a24466a0811..134fcacb38380d19e155f5f80c25bbb425a314b5 100644 --- a/docs/theme/index.hbs +++ b/docs/theme/index.hbs @@ -1,8 +1,22 @@ - +
+ +