fix: layout shift

This commit is contained in:
Cory Dransfeldt 2024-10-31 05:11:41 -07:00
parent 05ef5cc82d
commit 0085980879
No known key found for this signature in database
4 changed files with 5 additions and 4 deletions

View file

@ -81,6 +81,7 @@ export default async function (eleventyConfig) {
if (path && path.endsWith(".html")) { if (path && path.endsWith(".html")) {
return htmlmin.minify(content, { return htmlmin.minify(content, {
collapseBooleanAttributes: true, collapseBooleanAttributes: true,
collapseWhitespace: true,
decodeEntities: true, decodeEntities: true,
includeAutoGeneratedTags: false, includeAutoGeneratedTags: false,
minifyCSS: true, minifyCSS: true,

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "2.4.9", "version": "2.4.10",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "coryd.dev", "name": "coryd.dev",
"version": "2.4.9", "version": "2.4.10",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@11ty/eleventy-fetch": "4.0.1", "@11ty/eleventy-fetch": "4.0.1",

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "2.4.9", "version": "2.4.10",
"description": "The source for my personal site. Built using 11ty (and other tools).", "description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module", "type": "module",
"engines": { "engines": {

View file

@ -5,7 +5,7 @@
storage="local" storage="local"
transition-duration="10ms" transition-duration="10ms"
> >
<span class="loading client-side">{{ nowPlaying }}</span> <span class="loading client-side">&nbsp;{{ nowPlaying }}</span>
<span class="content"></span> <span class="content"></span>
<noscript> <noscript>
<span>{{ nowPlaying }}</span> <span>{{ nowPlaying }}</span>