[chore/frontend] Reorder JS a little bit to avoid visible text changes

This commit is contained in:
tobi 2025-04-22 10:16:16 +02:00
commit ec4241bb3d
6 changed files with 135 additions and 116 deletions

View file

@ -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{

View file

@ -154,7 +154,7 @@ func (m *Module) threadGETHandler(c *gin.Context) {
},
{
Bottom: true,
Src: jsBlurhash,
Src: jsFrontendPrerender,
},
},
Extra: map[string]any{

View file

@ -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 {