mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 12:35:31 -04:00
fix lighthouse suggestions: syntax color contrast & crossorigin preloads
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
{{ if eq hugo.Environment "production" }}
|
||||
<link rel="preconnect" href="https://s.jarv.is">
|
||||
{{ if and .IsPage (eq .Type "notes") }}
|
||||
<link rel="preconnect" href="https://utteranc.es">
|
||||
{{ end }}
|
||||
<link rel="preconnect" href="https://s.jarv.is" crossorigin="anonymous">
|
||||
{{ if and .IsPage (eq .Type "notes") }}
|
||||
<link rel="preconnect" href="https://utteranc.es" crossorigin="anonymous">
|
||||
<link rel="preconnect" href="https://api.utteranc.es" crossorigin="anonymous">
|
||||
<link rel="preconnect" href="https://api.github.com" crossorigin="anonymous">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<link rel="preload" href="{{ "fonts/inter-regular-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" href="{{ "fonts/inter-medium-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" href="{{ "fonts/inter-bold-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" href="{{ "fonts/inter-regular-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin="anonymous">
|
||||
<link rel="preload" href="{{ "fonts/inter-medium-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin="anonymous">
|
||||
<link rel="preload" href="{{ "fonts/inter-bold-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin="anonymous">
|
||||
|
@@ -1,2 +1,2 @@
|
||||
<script data-skip-dnt="true" async defer src="https://s.jarv.is/app.js"></script>
|
||||
<script async defer src="https://s.jarv.is/app.js" data-skip-dnt="true"></script>
|
||||
<noscript><img src="https://s.jarv.is/image.gif" alt=""></noscript>
|
||||
|
@@ -1,8 +1,7 @@
|
||||
<script src="https://utteranc.es/client.js"
|
||||
repo="{{ .Site.Params.utterancesRepo }}"
|
||||
issue-term="og:title"
|
||||
label="comments"
|
||||
theme="github-light"
|
||||
crossorigin="anonymous"
|
||||
async defer>
|
||||
</script>
|
||||
<script async defer
|
||||
src="https://utteranc.es/client.js"
|
||||
data-repo="{{ .Site.Params.utterancesRepo }}"
|
||||
data-issue-term="og:title"
|
||||
data-label="comments"
|
||||
data-theme="github-light"
|
||||
crossorigin="anonymous"></script>
|
||||
|
Reference in New Issue
Block a user