Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #15450
| From | Norman Peelman <npeelmandog@cfl.rr.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: MathJax - "typesetting" of maths in Web pages |
| Date | 2012-08-19 06:58 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <k0qgt6$a8m$1@dont-email.me> (permalink) |
| References | (4 earlier) <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> <6163400.TXUiaJx4aB@PointedEars.de> |
On 08/18/2012 01:54 PM, Thomas 'PointedEars' Lahn wrote: > 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. > > It does use classes... it's all the slightly different <span>s with classes and inline styles (25400+)... removing the <script> .. </script>s and the obvious duplicate styles only saves about 100k... it renders in ~2 secs or so and the layout is correct but the fonts are borked... for some reason the @font classes aren't getting transfered... hmmm, thought I was on to something there for a moment. Btw, it did render nicely on my Android phone... only the context menu didn't work.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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