-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refresh page before it works #21
Comments
Issue can only be replicated your page. I could not replicate it on my demo site. Maybe it's the insider version or another plugin causing it. Does this also happen on the demo site?
|
It doesn't happen on the demo site as far as im aware. I will try your recommendations and see what happens. |
i do use the insiders version, hope thats not the issue. |
I have the same issue (but no insiders version). I guess the instant loading feature could be the problem here (since I had a similar problem when writing custom scripts for mkdocs-material). document$.subscribe(function() {
myInitFunction();
}) as described under How to integrate with third-party JavaScript libraries. |
could you show me how you've incorporated this with panzoom? Im a big noob when it comes to JS. |
i tried to load the script per the documentation you mentioned but it did not work. I also disabled the instant loading features and this did not resolve. Since LarsWegm mentions having the same issue on standard material for mkdocs, i do not see a need to test that. I also noticed this in console, but unsure what this means or if it's related. |
This should do the trick: #22 |
New Version is available on pypi Thanks @LarsWegm for the pull request Let me know if it worked |
I'm not sure if im having a conflict as im not the best web dev, however, after your latest update ive noticed that the panzoom feature fails to work unless i reload the page. This happens maybe one out of every 3 times i navigate to a page with a mermaid diagram. I have to refresh the page before panzoom will work. All functionality is broken when this happens, including the reset to center and fullscreen button.
You can test this on my site by going here: https://sh3ll.co/core/networking/protocols/http-s/ and then clicking on "HTTP Flow." Sometimes it works first try, others it takes a refresh, sometimes it works multiple times in a row before breaking.
Ive tested this on the latest firefox and chrome browsers.
Please let me know how i can assist in troubleshooting.
The text was updated successfully, but these errors were encountered: