From 4a69471dc4c389b3d8ccaf1924bae4eabf1eae3f Mon Sep 17 00:00:00 2001 From: GALI PREM SAGAR Date: Thu, 4 Aug 2022 14:31:35 -0500 Subject: [PATCH] Defer loading of `custom.js` (#114) 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. xref: https://github.com/rapidsai/cudf/pull/11465 Authors: - GALI PREM SAGAR (https://github.com/galipremsagar) Approvers: - AJ Schmidt (https://github.com/ajschmidt8) URL: https://github.com/rapidsai/kvikio/pull/114 --- docs/source/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index b85ed7af80..535ea1cfd4 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -68,4 +68,4 @@ 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")