Lighthouse notes

This commit is contained in:
Zach Leatherman
2023-01-24 11:16:03 -06:00
parent c3753af6ff
commit c782f0d09d
2 changed files with 10 additions and 7 deletions

View File

@ -17,19 +17,19 @@
Choices for CSS:
1. External files (best with local dev server live reload)
#}
<link rel="stylesheet" href="/css/index.css">
<link rel="stylesheet" href="/css/prism-okaidia.css">{# addPassthroughCopy file #}
<link rel="stylesheet" href="/css/prism-diff.css">
{#-
<link rel="stylesheet" href="/css/index.css">
<link rel="stylesheet" href="/css/prism-okaidia.css">
<link rel="stylesheet" href="/css/prism-diff.css">
2. Inlined (speediest in production)
#}
<style>
{% include "public/css/index.css" %}
{% include "node_modules/prismjs/themes/prism-okaidia.css" %}
{% include "public/css/prism-diff.css" %}
</style>
{#
3. Concatenate CSS to one file (slower than 2 but faster than 1):
https://www.11ty.dev/docs/quicktips/concatenate/
4. Use a bundler