Skip to content

Commit

Permalink
defer custom.js loading (#11465)
Browse files Browse the repository at this point in the history
This PR switches the loading of `custom.js` to `defer` because we will need the entire page to be loading until the methods in this script can even execute correctly. 

Authors:
   - GALI PREM SAGAR (https://github.com/galipremsagar)

Approvers:
   - AJ Schmidt (https://github.com/ajschmidt8)
  • Loading branch information
galipremsagar authored Aug 4, 2022
1 parent b2ae9a9 commit 622e0f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/cudf/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def process_class_docstrings(app, what, name, obj, options, lines):

def setup(app):
app.add_css_file("https://docs.rapids.ai/assets/css/custom.css")
app.add_js_file("https://docs.rapids.ai/assets/js/custom.js")
app.add_js_file("https://docs.rapids.ai/assets/js/custom.js", loading_method="defer")
app.connect("doctree-read", resolve_aliases)
app.connect("missing-reference", ignore_internal_references)
app.connect("autodoc-process-docstring", process_class_docstrings)

0 comments on commit 622e0f4

Please sign in to comment.