From 533f8747e3d0ceb5a8d85adcaed76b62748be0ee Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Thu, 12 Mar 2026 15:44:15 -0400 Subject: [PATCH] perf(templates): add defer attribute to main.js script tags across all pages - Add defer attribute to + } diff --git a/templates/index.templ b/templates/index.templ index 2204aac..73b8ddd 100644 --- a/templates/index.templ +++ b/templates/index.templ @@ -18,7 +18,7 @@ templ Index(loggedIn bool) {
- diff --git a/templates/login.templ b/templates/login.templ index 6d6a27d..ebbcbd3 100644 --- a/templates/login.templ +++ b/templates/login.templ @@ -15,7 +15,7 @@ templ Login(sessionExpired bool, deleted bool) {

Login to Bookhoard

- diff --git a/web/src/main.ts b/web/src/main.ts index e511fb0..63b74ed 100644 --- a/web/src/main.ts +++ b/web/src/main.ts @@ -32,6 +32,7 @@ import "./theme"; import "./toast"; import "./toast-error"; import "./unlinked_books"; +import "./websocket"; import "./woodPanelingInit"; Alpine.start();