diff options
Diffstat (limited to 'internal/web')
| -rw-r--r-- | internal/web/profile.go | 4 | ||||
| -rw-r--r-- | internal/web/thread.go | 2 | ||||
| -rw-r--r-- | internal/web/web.go | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/internal/web/profile.go b/internal/web/profile.go index e8483921d..dd3ed8e64 100644 --- a/internal/web/profile.go +++ b/internal/web/profile.go @@ -249,7 +249,7 @@ func (m *Module) profileMicroblog(c *gin.Context, p *profile) { }, { Bottom: true, - Src: jsBlurhash, + Src: jsFrontendPrerender, }, }, Extra: map[string]any{ @@ -323,7 +323,7 @@ func (m *Module) profileGallery(c *gin.Context, p *profile) { }, { Bottom: true, - Src: jsBlurhash, + Src: jsFrontendPrerender, }, }, Extra: map[string]any{ diff --git a/internal/web/thread.go b/internal/web/thread.go index 0b296a75b..d46e52ac7 100644 --- a/internal/web/thread.go +++ b/internal/web/thread.go @@ -154,7 +154,7 @@ func (m *Module) threadGETHandler(c *gin.Context) { }, { Bottom: true, - Src: jsBlurhash, + Src: jsFrontendPrerender, }, }, Extra: map[string]any{ diff --git a/internal/web/web.go b/internal/web/web.go index 15814942a..5bccca06d 100644 --- a/internal/web/web.go +++ b/internal/web/web.go @@ -67,9 +67,9 @@ const ( cssSettings = distPathPrefix + "/settings-style.css" cssTag = distPathPrefix + "/tag.css" - jsFrontend = distPathPrefix + "/frontend.js" // Progressive enhancement frontend JS. - jsBlurhash = distPathPrefix + "/blurhash.js" // Blurhash rendering JS. - jsSettings = distPathPrefix + "/settings.js" // Settings panel React application. + jsFrontend = distPathPrefix + "/frontend.js" // Progressive enhancement frontend JS. + jsFrontendPrerender = distPathPrefix + "/frontend_prerender.js" // Frontend JS that should run before page renders. + jsSettings = distPathPrefix + "/settings.js" // Settings panel React application. ) type Module struct { |
