can't jump to right anchor when there are lots of pictures in doc
Bug Report
Steps to reproduce
- open a page which contains lots of picture
- click one head at the bottom of this page
- copy this url
- open a new page and paste url to page and enter
- page loaded and scroll down
- finally stops at a place which is not my excpet
if I remove all pictures, every thing works fine
What is current behaviour
page stop at a place, not to right anchor place
What is the expected behaviour
page stop to target anchor
Other relevant information
-
[ ] Bug does still occur when all/other plugins are disabled?
-
Your OS:
-
Node.js version: 12.16.2
-
npm/yarn version: 6.14.4
-
Browser version: Edge
-
Docsify version: 4.12.2
-
Docsify plugins: many
Please create a reproducible sandbox
Try jump to https://s7wzo9.csb.app/#/?id=dfdsfdsf
Mention the docsify version in which this bug was not present (if any)
Ah, yeah, that's annoying. It performs the jump calculation before the images are loaded (race condition) so it may not end in the place where it should.
Is there any workaround for this issue ?
EDIT : I found a workaround in https://github.com/docsifyjs/docsify/issues/351 but with limited success.