fix: excerpt

This commit is contained in:
Cory Dransfeldt 2024-03-10 08:56:07 -07:00
parent 4b9e1b40b9
commit 647bb2b44b
No known key found for this signature in database

View file

@ -4,7 +4,7 @@ title: 'Using an Eleventy event to optimise component JavaScript'
description: "I've added a small event to optimize web component JavaScript when my site builds."
tags: ['development', 'javascript', 'Eleventy']
---
My site leverages a number of web component for functionality on my site. Namely: mastodon post embeds, search, my now playing component, my theme toggle, post sharing and YouTube embeds. It's all loaded on pages only as needed but, I wanted to make sure it was all minified.
My site leverages a number of web component for functionality on my site. Namely: mastodon post embeds, search, my now playing component, my theme toggle, post sharing and YouTube embeds. It's all loaded on pages only as needed but, I wanted to make sure it was all minified.<!-- excerpt -->
So, I've created this event in `events/index.js`: