diff --git a/app/views/base/layout.scala.html b/app/views/base/layout.scala.html
index f2c82c05cd..a20d2359b8 100644
--- a/app/views/base/layout.scala.html
+++ b/app/views/base/layout.scala.html
@@ -188,10 +188,7 @@ asyncJs: Boolean = false)(body: Html)(implicit ctx: Context)
@if(ctx.requiresFingerprint) { @fingerprintTag }
@jsAt(s"compiled/lichess.site${isProd??".min"}.js", async = asyncJs)
@moreJs
+ @embedJs {lichess.quantity=@i18nJsQuantityFunction;@timeagoLocaleScript;}
@if(ctx.pageData.inquiry.isDefined) { @jsTag("inquiry.js") }
- @embedJs {
- lichess.quantity=@i18nJsQuantityFunction;
- @timeagoLocaleScript;
- }