We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
document.write
document.head.insertAdjacentHTML
1 parent 5974fe8 commit 510bfc2Copy full SHA for 510bfc2
src/librustdoc/html/templates/page.html
@@ -7,8 +7,7 @@
7
<meta name="description" content="{{page.description}}"> {# #}
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.insertAdjacentHTML("beforeend","{{files.source_serif_4_regular}},{{files.fira_sans_regular}},{{files.fira_sans_medium}},{{files.source_code_pro_regular}},{{files.source_code_pro_semibold}}".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="{{static_root_path|safe}}${f}">`).join("")) {# #}
12
</script> {# #}
13
<link rel="stylesheet" {#+ #}
14
href="{{static_root_path|safe}}{{files.normalize_css}}"> {# #}
0 commit comments