From 3949117be01ac8aca7e41a7179506f27627654e5 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 31 Mar 2025 15:51:17 +0200 Subject: [feature] Use blurhashes in frontend, tidy up gallery view a bit (#3948) * [feature] Use blurhashes in frontend, tidy up gallery view a bit * weeeeeeeeeeeeeeeee * beep boop --- internal/web/thread.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'internal/web/thread.go') diff --git a/internal/web/thread.go b/internal/web/thread.go index 60f7ac4d2..0b296a75b 100644 --- a/internal/web/thread.go +++ b/internal/web/thread.go @@ -146,7 +146,17 @@ func (m *Module) threadGETHandler(c *gin.Context) { Instance: instance, OGMeta: apiutil.OGBase(instance).WithStatus(context.Status), Stylesheets: stylesheets, - Javascript: []string{jsFrontend}, + Javascript: []apiutil.JavascriptEntry{ + { + Src: jsFrontend, + Async: true, + Defer: true, + }, + { + Bottom: true, + Src: jsBlurhash, + }, + }, Extra: map[string]any{ "context": context, }, -- cgit v1.2.3