Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #15429

Re: MathJax - "typesetting" of maths in Web pages

Message-ID <6163400.TXUiaJx4aB@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2012-08-18 19:54 +0200
Subject Re: MathJax - "typesetting" of maths in Web pages
Newsgroups comp.lang.javascript, comp.infosystems.www.authoring.html
References (3 earlier) <k08aq0$ikl$1@dont-email.me> <lHpWoYF1YUKQFwvW@invalid.uk.co.demon.merlyn.invalid> <k0jsnr$63q$1@dont-email.me> <YayJfCFfjpLQFwRu@invalid.uk.co.demon.merlyn.invalid> <k0n21a$l94$1@dont-email.me>
Followup-To comp.lang.javascript

Cross-posted to 2 groups.

Followups directed to: comp.lang.javascript

Show all headers | View raw


Norman Peelman wrote:

> On 08/17/2012 03:17 PM, Dr J R Stockton wrote:
>> In comp.lang.javascript message <k0jsnr$63q$1@dont-email.me>, Thu, 16
>> Aug 2012 18:37:45, Norman Peelman <npeelmandog@cfl.rr.com> posted:
>>>   MathJax appears to add a lot of code (both HTML and CSS) to the
>>> document. Upon closer examination it seems to me that MathJax should
>>> possibly consolidate the CSS as quite a bit is redundant. Your current
>>> page alone balloons from ~109KB to ~5.3MB
>>
>> It was under 58kB of ASCII when it left here.  That 5.3 MB must be the
>> size in RAM, which hardly matters.  Page authors can configure aspects
>> of the loading, which might help there.
> 
>    Saving the 'generated' source (after MathJax does it's thing) results
> in a 5.3MB text file. All the generated <scripts> are left in even
> though they aren't needed anymore

That is to be expected, as the document is not expected to be saved as 
rendered, but as it was.  Furthermore, there is no reliable method to remove 
all SCRIPT element nodes from a document tree once they are not needed 
anymore.

> and many of the <span>s created contains duplicate inline styles.

That would be suboptimal, indeed.  MathJax should use CSS classes, which 
would reduce the footprint considerably.


PointedEars
-- 
var bugRiddenCrashPronePieceOfJunk = (
    navigator.userAgent.indexOf('MSIE 5') != -1
    && navigator.userAgent.indexOf('Mac') != -1
)  // Plone, register_function.js:16

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1231@merlyn.demon.co.uk.invalid> - 2012-08-04 23:08 +0100
  Re: MathJax - "typesetting" of maths in Web pages "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-08-05 08:08 +0300
    Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1232@merlyn.demon.co.uk.invalid> - 2012-08-06 20:35 +0100
      Re: MathJax - "typesetting" of maths in Web pages "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-08-09 22:27 +0300
        Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1232@merlyn.demon.co.uk.invalid> - 2012-08-10 22:59 +0100
          Re: MathJax - "typesetting" of maths in Web pages Martin Leese <please@see.Web.for.e-mail.INVALID> - 2012-08-11 10:30 -0600
            Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1232@merlyn.demon.co.uk.invalid> - 2012-08-12 19:20 +0100
          Re: MathJax - "typesetting" of maths in Web pages "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-08-11 20:00 +0300
            Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1232@merlyn.demon.co.uk.invalid> - 2012-08-12 19:38 +0100
              Re: MathJax - "typesetting" of maths in Web pages "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-08-13 08:06 +0300
                Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1233@merlyn.demon.co.uk.invalid> - 2012-08-14 19:29 +0100
      Re: MathJax - "typesetting" of maths in Web pages Norman Peelman <npeelmandog@cfl.rr.com> - 2012-08-12 09:24 -0400
        Re: MathJax - "typesetting" of maths in Web pages Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-08-12 17:44 +0200
        Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1233@merlyn.demon.co.uk.invalid> - 2012-08-13 19:23 +0100
          Re: MathJax - "typesetting" of maths in Web pages tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2012-08-14 01:48 -0400
            Re: MathJax - "typesetting" of maths in Web pages "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-08-14 09:25 +0300
              Re: MathJax - "typesetting" of maths in Web pages tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2012-08-14 22:44 -0400
                Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1233@merlyn.demon.co.uk.invalid> - 2012-08-16 19:36 +0100
              Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1233@merlyn.demon.co.uk.invalid> - 2012-08-15 19:14 +0100
            Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1233@merlyn.demon.co.uk.invalid> - 2012-08-15 19:08 +0100
          Re: MathJax - "typesetting" of maths in Web pages Norman Peelman <npeelmandog@cfl.rr.com> - 2012-08-16 18:37 -0400
            Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1233@merlyn.demon.co.uk.invalid> - 2012-08-17 20:17 +0100
              Re: MathJax - "typesetting" of maths in Web pages Norman Peelman <npeelmandog@cfl.rr.com> - 2012-08-17 23:26 -0400
                Re: MathJax - "typesetting" of maths in Web pages Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-08-18 19:54 +0200
                Re: MathJax - "typesetting" of maths in Web pages Norman Peelman <npeelmandog@cfl.rr.com> - 2012-08-19 06:58 -0400
                Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1233@merlyn.demon.co.uk.invalid> - 2012-08-19 19:06 +0100
  Re: MathJax - "typesetting" of maths in Web pages Norman Peelman <npeelmandog@cfl.rr.com> - 2012-08-16 14:24 -0400
    Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1233@merlyn.demon.co.uk.invalid> - 2012-08-17 19:58 +0100
      Re: MathJax - "typesetting" of maths in Web pages Norman Peelman <npeelmandog@cfl.rr.com> - 2012-08-17 23:01 -0400
        Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1233@merlyn.demon.co.uk.invalid> - 2012-08-19 19:09 +0100
          Re: MathJax - "typesetting" of maths in Web pages Norman Peelman <npeelmandog@cfl.rr.com> - 2012-08-19 21:26 -0400
            Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1234@merlyn.demon.co.uk.invalid> - 2012-08-21 20:34 +0100
              Re: MathJax - "typesetting" of maths in Web pages Norman Peelman <npeelmandog@cfl.rr.com> - 2012-08-21 19:47 -0400
                Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1234@merlyn.demon.co.uk.invalid> - 2012-08-23 19:40 +0100

csiph-web