-
-
Notifications
You must be signed in to change notification settings - Fork 974
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
Some JS based features does not load correctly in Shiny runtime document #2032
Comments
I found the issue is not limited to
|
I also think KaTeX with |
Thanks @cpsievert for the report and thanks @atusy for the start of investigation. We'll need to have a deep look into that - Rmd with shiny runtime is not always easy to debug. |
By DevTools, we can see the real R Markdown content is inserted by the Reprex
|
Just to note I opened a PR rstudio/htmltools#201 so that we can easily async/defer scripts. |
So this means that any html dependencies used in R Markdown and using a listener on |
Yes... as far as I understand. |
Ok, I merged your PR in htmltools (we were already planning on making that fix). It might also be worth looking into just using |
@cpsievert Thank you so much. I agree |
@atusy was quicker than me 😄 Yes JQuery syntax is definitely an option. I am always trying to not depend on JQuery for new (small) scripts in order to maybe one day, have JQuery-free document. This is a wish from some member of the community for the R Markdown output produced. And indeed already possible with In shiny ecosystem, will you keep rely on JQuery ? I understand bootstrap 5 will not use it (by default). |
I don't see it going away anytime soon |
Ok thanks. For R Markdown, currently JQuery dependency is only inserted with |
I re-implemented dependencies with the |
For example
The text was updated successfully, but these errors were encountered: