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

@ -6,8 +6,11 @@ A starter repository showing how to build a blog with the [Eleventy](https://www
- Using [Eleventy v2.0](https://www.11ty.dev/blog/eleventy-v2-beta/) with zero-JavaScript output. - Using [Eleventy v2.0](https://www.11ty.dev/blog/eleventy-v2-beta/) with zero-JavaScript output.
- Content is entirely pre-rendered (this is a static site). - Content is entirely pre-rendered (this is a static site).
- Four-hundos Lighthouse score out of the box! - Performance focused.
- Four-hundos Lighthouse score out of the box!
- [View the Lighthouse report for the latest build.](https://eleventy-base-blog.netlify.app/reports/lighthouse/) (courtesy of the [Netlify Lighthouse plugin](https://github.com/netlify/netlify-plugin-lighthouse)) - [View the Lighthouse report for the latest build.](https://eleventy-base-blog.netlify.app/reports/lighthouse/) (courtesy of the [Netlify Lighthouse plugin](https://github.com/netlify/netlify-plugin-lighthouse))
- _0 Cumulative Layout Shift_
- _0ms Total Blocking Time_
- Easily [deploy](#deploy-this-to-your-own-site) to various hosting providers. - Easily [deploy](#deploy-this-to-your-own-site) to various hosting providers.
- Live reload provided by [Eleventy Dev Server](https://www.11ty.dev/docs/dev-server/). - Live reload provided by [Eleventy Dev Server](https://www.11ty.dev/docs/dev-server/).
- Content-driven [hierarchical navigation](https://www.11ty.dev/docs/plugins/navigation/) - Content-driven [hierarchical navigation](https://www.11ty.dev/docs/plugins/navigation/)

View File

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