Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Wiki
  • Shrinking MathJax for "local" installation

Shrinking MathJax for "local" installation · Changes

Page history
Updated Shrinking MathJax for "local" installation (markdown) authored Nov 19, 2012 by dpvc's avatar dpvc
Hide whitespace changes
Inline Side-by-side
Shrinking-MathJax-for-"local"-installation.md
View page @ 7c659071
...@@ -74,7 +74,7 @@ Since you most likely want to write your own configuration anyway, you can remov ...@@ -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. 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.) **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 ...@@ -93,7 +93,7 @@ If you're more radical, you can force SVG-output (<a href="#output">see 'reducin
* Reducing input options. * 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. * <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 ...@@ -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**. For Readium, we started at **~26.8MB**.
Shrinking I: **~6.2MB** Shrinking I: **~6.2MB**
Shrinking II: **~15.3MB** Shrinking II: **~15.3MB**
Shrinking II: **~3.8MB** Shrinking II: **~3.8MB**
Leaving us at **~1.4MB**. Leaving us at **~1.4MB**.
\ No newline at end of file
Clone repository

MathJax Wiki

  • Contributing
  • Development
    • Development Process
      • Release Process Checklist
      • Hotfix Release Process
      • Documentation Update Process
      • Source Control Policies
    • Design Documents
      • MathJax Roadmap
      • CDN Hosting
        • Managing Rackspace Cloud Files & CDN
        • Directory Structure
        • .htaccess settings
        • Managing Amazon Cloudfront
      • Performance Discussion
      • Profiling and Diagnostics Tools
      • Configuration Options
      • Documentation generation guide
      • Testing
        • Platforms supported
        • Test Machines
  • MathJax web presence