diff --git a/features/common/layouts/base.templ b/features/common/layouts/base.templ index 7f7064b..472769d 100644 --- a/features/common/layouts/base.templ +++ b/features/common/layouts/base.templ @@ -12,6 +12,7 @@ templ Base(title, description string) { { title } + // Terminal aesthetic uses JetBrains Mono as the body face and @@ -36,6 +37,19 @@ templ Base(title, description string) { + + + // Register the service worker (production only). In dev, air + // live-reload + the /reload SSE would fight a caching worker. + if config.Global.Environment != config.Dev { + + } } diff --git a/features/common/layouts/base_templ.go b/features/common/layouts/base_templ.go index a245bff..60824f5 100644 --- a/features/common/layouts/base_templ.go +++ b/features/common/layouts/base_templ.go @@ -60,14 +60,14 @@ func Base(title, description string) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 3, "\">") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 15, "\" defer>") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if config.Global.Environment != config.Dev { + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 18, "") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + } + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 19, "") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }