From 8f4d0e94331e4897e865abba1096db6450f1b351 Mon Sep 17 00:00:00 2001 From: juanatsap Date: Thu, 14 May 2026 12:59:30 +0100 Subject: [PATCH] feat: self-host HTMX 2.0.10 and Hyperscript 0.9.91, remove unpkg CDN - Download htmx.min.js v2.0.10 and _hyperscript.min.js v0.9.91 locally - Update head-scripts.html to load from /static/ instead of unpkg CDN - Remove https://unpkg.com from CSP script-src whitelist - Update all documentation references to reflect self-hosted paths - No breaking changes: all hx-* attributes are HTMX 2.0 compatible --- doc/02-MODERN-WEB-TECHNIQUES.md | 2 +- doc/03-API.md | 4 ++-- doc/04-HYPERSCRIPT-RULES.md | 4 ++-- doc/17-CONTACT-FORM.md | 2 +- doc/18-SECURITY-AUDIT.md | 22 ++++++++++----------- internal/handlers/cv_contact.go | 2 +- internal/middleware/security.go | 2 +- static/htmx/htmx.min.js | 1 + static/hyperscript/_hyperscript.min.js | 22 +++++++++++++++++++++ templates/partials/layout/head-scripts.html | 12 +++++------ 10 files changed, 47 insertions(+), 26 deletions(-) create mode 100644 static/htmx/htmx.min.js create mode 100644 static/hyperscript/_hyperscript.min.js diff --git a/doc/02-MODERN-WEB-TECHNIQUES.md b/doc/02-MODERN-WEB-TECHNIQUES.md index 00c3324..3b40c2b 100644 --- a/doc/02-MODERN-WEB-TECHNIQUES.md +++ b/doc/02-MODERN-WEB-TECHNIQUES.md @@ -1316,7 +1316,7 @@ end - + ``` **Benefits:** diff --git a/doc/03-API.md b/doc/03-API.md index 3abdad4..14dfd68 100644 --- a/doc/03-API.md +++ b/doc/03-API.md @@ -988,7 +988,7 @@ isHTMX := r.Header.Get("HX-Request") != "" - +