From c782f0d09d3ad79bbb0e7d196a6ae248ab3fe8bf Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Tue, 24 Jan 2023 11:16:03 -0600 Subject: [PATCH] Lighthouse notes --- README.md | 5 ++++- _includes/layouts/base.njk | 12 ++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index fbb11ae..4fc6a9b 100644 --- a/README.md +++ b/README.md @@ -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. - 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)) + - _0 Cumulative Layout Shift_ + - _0ms Total Blocking Time_ - 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/). - Content-driven [hierarchical navigation](https://www.11ty.dev/docs/plugins/navigation/) diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index de5a1eb..4749396 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -17,19 +17,19 @@ Choices for CSS: 1. External files (best with local dev server live reload) -#} - - {# addPassthroughCopy file #} - -{#- + + + + 2. Inlined (speediest in production) +#} +{# 3. Concatenate CSS to one file (slower than 2 but faster than 1): https://www.11ty.dev/docs/quicktips/concatenate/ 4. Use a bundler