Replies: 6 comments 2 replies
-
Do you have some form of repo where we can test this out? |
Beta Was this translation helpful? Give feedback.
-
I figured out how this bug is triggered, that is, when multiple external images are introduced into the page, this problem will be triggered. |
Beta Was this translation helpful? Give feedback.
-
That's layout shift (https://web.dev/articles/optimize-cls). You'll need to either specify height/width to your images or set something like |
Beta Was this translation helpful? Give feedback.
-
thank you very much |
Beta Was this translation helpful? Give feedback.
-
Moving this to discussion, so if anyone has some cool solution they can share there. In future, we might also have a recommended/built-in way of handling images. |
Beta Was this translation helpful? Give feedback.
-
Sticking a +1 on this! Have ported a sprawling mediawiki site over to Vitepress, its incredible how fast it is, but I'm suffering a lot of this cumulative layout shift on long pages with lots of images. There's too many images to process by hand, so any pointers to a plugin would be much appreciated (a google search turned up a lot of helpful explainer articles, but no plugin links). You can see it here for example: https://tokeru.com/cgwiki/HoudiniDops.html#rbd_follow_targets Thanks! |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
In a page with a lot of content, it is sometimes impossible to locate a specific location using #id. This may be caused by positioning before the page has fully loaded. Especially when the project is just started, use search to find particularly late content on a certain page (which has a lot of content).
Reproduction
Expected behavior
After searching, you can locate the specific location on the specific page.
System Info
Additional context
No response
Validations
Beta Was this translation helpful? Give feedback.
All reactions