aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-09-17 20:56:23 -0700
committerBryan Newbold <bnewbold@robocracy.org>2020-09-17 20:56:26 -0700
commit8187720f503967ad68ab07fb25b36f554663e1c3 (patch)
tree4e4d1f92862d59809aceeeeb3f579a15a7f46c53 /python/fatcat_web
parent7e730edac80b99560b1694de53ce9db080af08a6 (diff)
downloadfatcat-8187720f503967ad68ab07fb25b36f554663e1c3.tar.gz
fatcat-8187720f503967ad68ab07fb25b36f554663e1c3.zip
web: update sub-resource integrity and pre-loading
For security/integrity and performance
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/templates/base.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/python/fatcat_web/templates/base.html b/python/fatcat_web/templates/base.html
index 2c18ec44..b858728d 100644
--- a/python/fatcat_web/templates/base.html
+++ b/python/fatcat_web/templates/base.html
@@ -17,7 +17,18 @@
<link rel="stylesheet"
type="text/css"
href="https://cdn.jsdelivr.net/npm/fomantic-ui@2.8.6/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&display=swap"
+ as="style">
+ <link rel="preload"
+ href="https://cdn.jsdelivr.net/npm/fomantic-ui@2.8.6/dist/themes/default/assets/fonts/icons.woff2"
+ as="font"
+ type="font/woff2"
crossorigin="anonymous">
+ <link rel="icon" href="data:,">
+
<style>
{# bnewbold: fix light grey bars in header #}
.ui.inverted.menu .item:before { background: none; }
@@ -131,10 +142,12 @@
<script
src="https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js"
+ integrity="sha256=FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous">
</script>
<script
src="https://cdn.jsdelivr.net/npm/fomantic-ui@2.8.6/dist/semantic.min.js"
+ integrity="sha256=9H3HWYnPJ2bEHgkOrw+48KheOqYzTvJd1hbeU9sEDFk="
crossorigin="anonymous">
</script>
{% block postscript %}{% endblock %}