docs: Customize view transition and other layout shift improvements (#43763)

Follow up to https://github.com/zed-industries/zed/pull/43762.

Yet another shot at making the navigation between pages flicker less.

Release Notes:

- N/A
This commit is contained in:
Danilo Leal
2025-11-28 23:05:58 +00:00
committed by GitHub
parent 34b453cee6
commit 63eb3ea7e0
3 changed files with 18 additions and 21 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ const updateFunction = () => {
}
};
window.addEventListener("load", () => {
document.addEventListener("DOMContentLoaded", () => {
const pagetoc = getPagetoc();
const headers = [...document.getElementsByClassName("header")];