Async loading of MathJax.

http://calendar.perfplanet.com/2011/the-art-and-craft-of-the-async-snippet/
This commit is contained in:
bootstraponline
2012-07-13 14:25:53 -06:00
parent 30224515fd
commit bfd4ad9255
@@ -10,14 +10,19 @@
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="/css/ie7.css" media="all">
<![endif]-->
<script type="text/javascript" src="/javascript/jquery.js"></script>
<script type="text/javascript" src="/javascript/gollum.js"></script>
<script type="text/javascript" src="/javascript/gollum.dialog.js"></script>
<script type="text/javascript" src="/javascript/gollum.placeholder.js"></script>
<script type="text/javascript" src="/javascript/editor/gollum.editor.js"></script>
{{#mathjax}}<script type="text/javascript" src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>{{/mathjax}}
{{#mathjax}}<script>(function(d,j){
j = d.createElement('script');
j.src = 'https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML';
(d.head || d.getElementsByTagName('head')[0]).appendChild(j);
}(document));
</script>{{/mathjax}}
<title>{{title}}</title>
</head>
<body>