We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents da75aaf + 510bfc2 commit 0ab8cc1Copy full SHA for 0ab8cc1
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