-
I'm having a weird experience with anchor links and images. When I click an anchor that leads to another page (for example, search results), the browser redirects to that page and scrolls to the location of the anchor. However, when there are images not yet cached when navigating, they would take extra Is there any way to mitigate this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Make a web search on "reduce cls due to images". |
Beta Was this translation helpful? Give feedback.
-
I've made a vite+md plugin that downloads remote media (images and video) assets, resolves their size and injects the width and height to the Here is the vite plugin: https://github.com/Naninovel/naninovel.github.io/blob/main/docs/.vitepress/ext/vite/vite-embed.ts |
Beta Was this translation helpful? Give feedback.
Make a web search on "reduce cls due to images".