... | ... | @@ -74,7 +74,7 @@ Since you most likely want to write your own configuration anyway, you can remov |
|
|
|
|
|
Most likely, your project is using a modern rendering engine such as webkit or gecko. Therefore, the PNG-fonts are not necessary -- at *29,000* files and **12.5MB** this is the biggest reduction.
|
|
|
|
|
|
**Note** If you remove the fonts, you should also include `imageFont:null` in your configuration to prevent font warning messages if you remove the fonts (cf. [the documentation on font warnings](http://www.mathjax.org/docs/2.0/options/FontWarnings.html)).
|
|
|
**Note** If you remove the fonts, you should also include `imageFont:null` in your configuration to prevent font warning messages if you remove the fonts (cf. [the HTML_CSS configuration documentation](http://docs.mathjax.org/en/latest/options/HTML-CSS.html)).
|
|
|
|
|
|
**Note** The `MMLorHTML.js` configuration might still be useful, cf. [its documentation](http://www.mathjax.org/docs/2.0/options/MMLorHTML.html). If you are working on a web application, the [combined configuration files](http://www.mathjax.org/docs/2.0/config-files.html) will be more efficient than a regular configuration. If you can use one of these configuration file, keep it. (For local files, e.g. in a smartphone app, there is no real advantage though.)
|
|
|
|
... | ... | @@ -93,7 +93,7 @@ If you're more radical, you can force SVG-output (<a href="#output">see 'reducin |
|
|
|
|
|
* Reducing input options.
|
|
|
|
|
|
Depending on your project it might make sense to reduce the input options. For example, an epub3 reader application such as Readium might restrict the input method to MathML since MathML is part of the epub3 standard. If you're working on something more interactive you might want to allow LaTeX or Asciimath input. In any case, the savings are `jax/input/AsciiMath` **31.7kb**, `jax/input/MathML` **65.2kb**, `jax/input/TeX` **49.9kb**.
|
|
|
Depending on your project it might make sense to reduce the input options. For example, an epub3 reader application such as Readium might restrict the input method to MathML since MathML is part of the epub3 standard. If you're working on something more interactive you might want to allow LaTeX or AsciiMath input. In any case, the savings are `jax/input/AsciiMath` **31.7kb**, `jax/input/MathML` **65.2kb**, `jax/input/TeX` **49.9kb**.
|
|
|
|
|
|
* <a name="output"></a>Reducing output options.
|
|
|
|
... | ... | @@ -105,8 +105,8 @@ Similarly, it might make sense to reduce the output options depending on your pl |
|
|
|
|
|
For Readium, we started at **~26.8MB**.
|
|
|
|
|
|
Shrinking I: **~6.2MB**
|
|
|
Shrinking II: **~15.3MB**
|
|
|
Shrinking I: **~6.2MB**
|
|
|
Shrinking II: **~15.3MB**
|
|
|
Shrinking II: **~3.8MB**
|
|
|
|
|
|
Leaving us at **~1.4MB**. |
|
|
\ No newline at end of file |