diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-09-17 22:54:48 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-09-17 22:55:21 -0700 |
commit | a7c76d1a835ab525be2f59dbd0d7ee487c0bd33c (patch) | |
tree | 3bf618804bb4a1a2bcb24b6286a81a2fe4683bd7 /fatcat_scholar/templates/base.html | |
parent | baed2366bc44ddb143cb57217f76b6ebe61f0e02 (diff) | |
download | fatcat-scholar-a7c76d1a835ab525be2f59dbd0d7ee487c0bd33c.tar.gz fatcat-scholar-a7c76d1a835ab525be2f59dbd0d7ee487c0bd33c.zip |
web: preload links as an optimization
The performance benefit here is probably negligable, but giving it a
try to improve first page load times.
Diffstat (limited to 'fatcat_scholar/templates/base.html')
-rw-r--r-- | fatcat_scholar/templates/base.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html index 4c95501..c1f2a4d 100644 --- a/fatcat_scholar/templates/base.html +++ b/fatcat_scholar/templates/base.html @@ -111,6 +111,15 @@ </title> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.1/dist/semantic.min.css" + type="text/css" + crossorigin="anonymous"> + <link rel="preload" + href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic&subset=latin" + as="style"> + <link rel="preload" + href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.1/dist/themes/default/assets/fonts/icons.woff2" + as="font" + type="font/woff2" crossorigin="anonymous"> <link rel="icon" type="image/x-icon" |