Image logo optimization for content shifting #876
-
The logo image (relevant docs at https://pradyunsg.me/furo/customisation/logo/) currently loads non-instantly, which causes really bad content shifting on a page change. I noticed this annoyance at pytest's docs, which has it particularly bad (when I view it, from my geographic location, with my wifi, etc etc). What can be done?
Relevant material:
I'd make a PR but I'm unfamiliar with the tech stack. Hope this can be implemented, cheers! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@wade-cheng The pre-fetching is a good idea -- I've implemented that in 5dc72a3. I'm wary of adding in a min-hieght since in-general, I want this theme to have the smallest possible surface w.r.t. the user's actual documentation. I expect that pre-fetching should reduce some of the content jumping. |
Beta Was this translation helpful? Give feedback.
@wade-cheng The pre-fetching is a good idea -- I've implemented that in 5dc72a3.
I'm wary of adding in a min-hieght since in-general, I want this theme to have the smallest possible surface w.r.t. the user's actual documentation. I expect that pre-fetching should reduce some of the content jumping.