We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
document.write
document.head.innerHTML
1 parent 5974fe8 commit 4fbb796Copy full SHA for 4fbb796
src/librustdoc/html/templates/page.html
@@ -8,7 +8,7 @@
8
<title>{{page.title}}</title> {# #}
9
<script>if(window.location.protocol!=="file:") {# Hack to skip preloading fonts locally - see #98769 #}
10
for(f of "{{files.source_serif_4_regular}},{{files.fira_sans_regular}},{{files.fira_sans_medium}},{{files.source_code_pro_regular}},{{files.source_code_pro_semibold}}".split(",")) {# #}
11
- document.write(`<link rel="preload" as="font" type="font/woff2" crossorigin href="{{static_root_path|safe}}${f}">`) {# #}
+ document.head.insertAdjacent("beforeend",`<link rel="preload" as="font" type="font/woff2" crossorigin href="{{static_root_path|safe}}${f}">`) {# #}
12
</script> {# #}
13
<link rel="stylesheet" {#+ #}
14
href="{{static_root_path|safe}}{{files.normalize_css}}"> {# #}
0 commit comments