[Rivet] rivet-mkhtml output requires network access

Andy Buckley andy.buckley at cern.ch
Tue Nov 3 22:24:57 GMT 2015


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