Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit b894bdc

Browse files
Update Runestone modules to all add js files using defer
1 parent 224cfab commit b894bdc

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

runestone/animation/animation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
def setup(app):
2727
app.add_directive("animation", Animation)
28-
app.add_autoversioned_javascript("animationbase.js")
28+
app.add_autoversioned_javascript("animationbase.js", defer="")
2929

3030

3131
SRC = """

runestone/lp/lp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ def setup(
538538
app.setup_extension("CodeChat.CodeToRestSphinx")
539539

540540
# Supply a fake CSS file to avoid errors, since the CodeChat's CSS will import this.
541-
app.add_autoversioned_javascript("html4css1.css")
541+
app.add_autoversioned_javascript("html4css1.css", defer="")
542542

543543
# See http://www.sphinx-doc.org/en/stable/extdev/appapi.html#sphinx.application.Sphinx.add_role.
544544
app.add_role("alink", _alink_role)

runestone/matrixeq/matrixeq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def setup(app):
4343

4444
app.add_autoversioned_stylesheet("matrixeq.css")
4545

46-
app.add_autoversioned_javascript("matrixeq.js")
46+
app.add_autoversioned_javascript("matrixeq.js", defer="")
4747

4848
app.add_node(MatrixEqNode, html=(visit_matrixeq_node, depart_matrixeq_node))
4949
app.add_node(

runestone/webgldemo/webgldemo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ def setup(app):
4747

4848
# CodeMirror syntax highlighting for various types of code
4949

50-
app.add_autoversioned_javascript("webglinteractive.js")
50+
app.add_autoversioned_javascript("webglinteractive.js", defer="")
5151

5252
# Javascript for saving files to the client's hard drive
53-
app.add_autoversioned_javascript("FileSaver.min.js")
53+
app.add_autoversioned_javascript("FileSaver.min.js", defer="")
5454

5555
app.add_node(
5656
WebglInteractiveNode,

0 commit comments

Comments
 (0)