You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
now with turbolinks 5 works perfect, the only detail is if you wanna use a config file(not an embed script on the view) you will need to load it after the mathjax_tag method or, a more simple way, do something like this:
I am facing same problem, but it is more complicated. I have a dynamical content on site, which is loaded after mathjax does his job. And i am running turbolinks 5.2.0. Before updating my turbolinks gem i was using two script files
mathjax load config needed for dynamic content (called at the end of page)
if (window.MathJax) {
MathJax.Hub.Queue(
["Typeset",MathJax.Hub]
);
}
Now when i switch between pages using "back and forward" my mathjax is rendered twice or even more, depending on how ofter i go back and forward. I am sure it is because turbolinks calls mathjax multiple times, but i cant figure out why.
This gem does not work with turbolinks by default. Is there a solution for that?
The text was updated successfully, but these errors were encountered: