Skip to content
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

Disable MathJax when output panel is hidden #25

Closed
fgdorais opened this issue Jun 25, 2013 · 13 comments
Closed

Disable MathJax when output panel is hidden #25

fgdorais opened this issue Jun 25, 2013 · 13 comments

Comments

@fgdorais
Copy link

I was recently editing a math-heavy document. Since the output panel re-renders the whole document after each edit, the math processing eventually slowed things down to a crawl. I expected that hiding the output panel would disable math processing and allow me to edit at normal speed, but it looks like math is still being processed when the output panel is hidden.

@benweet
Copy link
Owner

benweet commented Jun 25, 2013

Hi, can you provide info about your hardware configuration and the content of the document (an example would be nice). Thx.

@benweet
Copy link
Owner

benweet commented Jun 25, 2013

It's a bit complicated. I could disable all the markdown conversion. The problem is that html export (save and publish) relies on the preview and would have to be disabled when the panel is hidden... not nice.

@pkra
Copy link

pkra commented Jun 25, 2013

How about triggering a typesetting when exporting (and wait for it to finish)? See this discussion for some suggestions regarding MathJax.

@benweet
Copy link
Owner

benweet commented Jun 25, 2013

Hi @pkra
It would require a bit of refactoring to make the export asynchronous. Anyway, I will have to think about it...

@pkra
Copy link

pkra commented Jun 25, 2013

Yes, I can imagine. Not sure if this is a real alternative, but you could also switch the MathJax output-renderer to MathML when hiding the output panel. MathML-output won't be readable except on Firefox, but will eliminate speed issues. See http://docs.mathjax.org/en/latest/api/hub.html#api-hub for the APIs. Of course, you'd still have to make sure that everything's re-typeset as HTML-CSS before exporting, so I'm not sure that this actually helps...

@pkra
Copy link

pkra commented Jun 25, 2013

BTW, this is certainly a workaround for @fgdorais -- switch the renderer manually to MathML.

@benweet
Copy link
Owner

benweet commented Jun 25, 2013

Or disable MathJax in Settings->Extensions...

@benweet
Copy link
Owner

benweet commented Jul 25, 2013

Hi @pkra Can you have look into this... Thanks

@pkra
Copy link

pkra commented Jul 25, 2013

Just did.

@benweet
Copy link
Owner

benweet commented Jul 26, 2013

@pkra Thank you for your answer. I tried what you recommended but without much success... So I just opened an issue in MathJax.

@benweet
Copy link
Owner

benweet commented Jul 28, 2013

I just commited my work on partial rendering (#47). @fgdorais that should fix your problem?

@fgdorais
Copy link
Author

fgdorais commented Aug 2, 2013

@benweet it's a lot faster now. Editing the most problematic document on my samsung chromebook is not impossible anymore.

@benweet
Copy link
Owner

benweet commented Feb 9, 2018

Closing as too old.

@benweet benweet closed this as completed Feb 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants