|
[Rivet] rivet-mkhtml output requires network accessDavid Bjergaard david.bjergaard at gmail.comTue Nov 3 23:04:56 GMT 2015
Hi, You don't have to bundle the whole 50mb. Most of the space is for png files of the fonts and the fonts themselves so that mathjax can do something intelligent on ancient and weird browsers. I think (though I'm not volunteering) you can ship a slimmed down mathjax the "just works". David > On Nov 3, 2015, at 5:24 PM, Andy Buckley <andy.buckley at cern.ch> wrote: > > On 03/11/15 21:54, David Grellscheid wrote: >>> Is MathJax intelligent enough to time out immediately if you set the >>> browser in offline mode? (or, even better and I think the case in >>> sufficiently friendly OSes, for that to *automatically* happen when >>> there's no network connection.) It seems to me that whether or not >>> MathJax should be used depends on the viewer rather than the generator >>> of the HTML output. Some hints on how to detect internet: >>> https://stackoverflow.com/questions/189430/detect-that-the-internet-connection-is-offline >>> >>> Or maybe the timeout period can just be reduced? >> >> The timeout I was concerned with is not under the HTML page's control >> anyway. It's browser-specific when trying to resolve the URL ref >> pointing to MathJax. We've not even got to loading the JS file yet when >> we run into this problem. > > Ah, of course. Hmm, doesn't look like there's a nice way to do this... > > https://stackoverflow.com/questions/2021157/any-way-to-gracefully-enforce-a-timeout-limit-when-loading-a-slow-external-file > > Andy > > -- > Dr Andy Buckley, Lecturer / Royal Society University Research Fellow > Particle Physics Expt Group, University of Glasgow
More information about the Rivet mailing list |