How to check if MathJax is done rendering on iOS

33 views
Skip to first unread message

Gray

unread,
Apr 12, 2015, 3:04:34 PM4/12/15
to mathja...@googlegroups.com
I'm currently working on an iOS app that uses MathJax to render math and display it to the user. I load a URL request using a UIWebView and then MathJax does the rest. My only problem is that the when the screen appears, the user can see the rendering in progress. I sort of fixed this problem by adding a loading icon to the screen for a couple of seconds and then displaying the math, in the hopes that the math would be completely rendered in about 2 seconds.

Unfortunately, this isn't completely ideal, because occasionally MathJax takes slightly longer to render, so I was wondering if there was a way to check when MathJax is completely done rendering the math.

Thanks!

Gray

Peter Krautzberger

unread,
Apr 13, 2015, 11:43:27 AM4/13/15
to mathja...@googlegroups.com
Hi,

See http://docs.mathjax.org/en/latest/synchronize.html and http://cdn.mathjax.org/mathjax/latest/test/sample-signals.html for some examples.

Also, you can search the user group for similar questions.

Regards,
Peter.

--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Davide P. Cervone

unread,
Apr 13, 2015, 11:49:14 AM4/13/15
to mathja...@googlegroups.com
The example at http://cdn.mathjax.org/mathjax/latest/test/sample-all-at-once.html might be a better example to look at, as it does an action when the typesetting is complete.

Davide

Gray

unread,
Apr 13, 2015, 12:36:52 PM4/13/15
to mathja...@googlegroups.com
This is great, thank you both for the reply!
Reply all
Reply to author
Forward
0 new messages