Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use MathJax library on Google App Engine

I'm trying to add Tex support to my application and I would like to use MathJax to render Mathematics formulas client side since I gave up the server side solution explained here.
The MathJax library is pretty fat (30.000 files) and it can't be easily installed on App Engine due to the files number limitation.

I have no experience with MathJax library so I'm open to other strategies like:

  • Available MathJax CDN
  • Cutting down some directories/files to reduce the package's files number.

Do you know any way to use Mathjax on Google App Engine?

like image 942
systempuntoout Avatar asked Dec 12 '22 16:12

systempuntoout


2 Answers

Since March 2011 MathJAX has its own CDN, so you can now use it without uploading any files to GAE. Just make sure this is in any page's header:

<script type="text/javascript" async
  src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?...">
</script>
like image 55
Matthew Leingang Avatar answered Dec 15 '22 06:12

Matthew Leingang


You could use http://mathjax.connectmv.com : we are not a CDN, but we publicly host the most recent MathJax files for free.

We have expire headers set at 2 weeks and Access-Control-Allow-Origin: * to allow for cross-site access.

like image 31
Kevin Dunn Avatar answered Dec 15 '22 06:12

Kevin Dunn