summaryrefslogtreecommitdiff
path: root/internal/web/thread.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2025-03-31 15:51:17 +0200
committerLibravatar GitHub <noreply@github.com>2025-03-31 15:51:17 +0200
commit3949117be01ac8aca7e41a7179506f27627654e5 (patch)
treece5c30ca299a57af69284d58021cc9380cdc553f /internal/web/thread.go
parent[docs] Fix Swagger URL for the "edit status" operation (#3932) (diff)
downloadgotosocial-3949117be01ac8aca7e41a7179506f27627654e5.tar.xz
[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
Diffstat (limited to 'internal/web/thread.go')
-rw-r--r--internal/web/thread.go12
1 files changed, 11 insertions, 1 deletions
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,
},