move lobby js preload data to end of body tag
This commit is contained in:
parent
0a83d43599
commit
bc35e71f5c
|
@ -12,6 +12,10 @@
|
||||||
<span id="site_baseline">@trans.freeOnlineChess()</span>
|
<span id="site_baseline">@trans.freeOnlineChess()</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@moreJs = {
|
||||||
|
@embedJs("var lichess_preload = " + preload)
|
||||||
|
}
|
||||||
|
|
||||||
@goodies = {
|
@goodies = {
|
||||||
@ctx.me.map { u =>
|
@ctx.me.map { u =>
|
||||||
<div id="timeline" data-href="@routes.Lobby.timeline">
|
<div id="timeline" data-href="@routes.Lobby.timeline">
|
||||||
|
@ -35,6 +39,7 @@ title = "",
|
||||||
baseline = baseline.some,
|
baseline = baseline.some,
|
||||||
active = siteMenu.play.some,
|
active = siteMenu.play.some,
|
||||||
goodies = goodies.some,
|
goodies = goodies.some,
|
||||||
|
moreJs = moreJs,
|
||||||
underchat = underchat.some) {
|
underchat = underchat.some) {
|
||||||
<div id="call_boxes">
|
<div id="call_boxes">
|
||||||
@translationCall.map(i18n.callBox(_))
|
@translationCall.map(i18n.callBox(_))
|
||||||
|
@ -70,5 +75,4 @@ underchat = underchat.some) {
|
||||||
@lobby.buttons()
|
@lobby.buttons()
|
||||||
@lobby.undertable(gameTimeline, forumRecent, tours)
|
@lobby.undertable(gameTimeline, forumRecent, tours)
|
||||||
</div>
|
</div>
|
||||||
@embedJs("var lichess_preload = " + preload)
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue