diff --git a/doc/sphinx/_templates/layout.html b/doc/sphinx/_templates/layout.html
index 916891eba..778bcb1a0 100644
--- a/doc/sphinx/_templates/layout.html
+++ b/doc/sphinx/_templates/layout.html
@@ -10,20 +10,24 @@ lang="en">
{%- macro script() %}
{%- for scriptfile in script_files %}
-
+ {%- if scriptfile.startswith("https://cdn.jsdelivr.net") %}
+
+ {%- else %}
+
+ {%- endif %}
{%- endfor %}
{%- endmacro %}
{%- macro css() %}
-
+
{%- for css in css_files %}
{%- if css|attr("rel") %}
-
+
{%- else %}
-
+
{%- endif %}
{%- endfor %}
{%- endmacro %}
@@ -152,7 +156,7 @@ lang="en">
-
-
+
+