Shortened javascript which loads MathJax so that it is easier to compare for removal (since we unfortunately cannot set its ID).
This commit is contained in:
parent
a762046efa
commit
5ffa56c7e5
12
dollar.rkt
12
dollar.rkt
|
@ -100,26 +100,26 @@ EOJS
|
||||||
(define (load-script-string src [async-defer #f])
|
(define (load-script-string src [async-defer #f])
|
||||||
(string-append
|
(string-append
|
||||||
#<<EOJS
|
#<<EOJS
|
||||||
(function() {
|
(function() {document.write('<scr' + 'ipt type="text/javascript" src="
|
||||||
document.write('<scr' + 'ipt type="text/javascript" src="
|
|
||||||
EOJS
|
EOJS
|
||||||
src
|
src
|
||||||
"\""
|
"\""
|
||||||
(if async-defer " async=\"async\" defer=\"defer\" " "")
|
(if async-defer " async=\"async\" defer=\"defer\" " "")
|
||||||
#<<EOJS
|
#<<EOJS
|
||||||
></scr' + 'ipt>');
|
></scr' + 'ipt>');})();
|
||||||
})();
|
|
||||||
EOJS
|
EOJS
|
||||||
))
|
))
|
||||||
|
|
||||||
(define (load-style-string src)
|
(define (load-style-string src)
|
||||||
(string-append
|
(string-append
|
||||||
#<<EOJS
|
#<<EOJS
|
||||||
(function() {document.write('<link rel="stylesheet" href="
|
(function() {
|
||||||
|
document.write('<link rel="stylesheet" href="
|
||||||
EOJS
|
EOJS
|
||||||
src
|
src
|
||||||
#<<EOJS
|
#<<EOJS
|
||||||
" />');})();
|
" />');
|
||||||
|
})();
|
||||||
EOJS
|
EOJS
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user