Merge pull request #18377 from overleaf/td-metrics-page-fix

Move Bootstrap and jQuery imports into metricsApp

GitOrigin-RevId: 3ec1690ca60928e983211792f6c6b63548dfe62c
This commit is contained in:
Tim Down 2024-05-16 08:38:27 +01:00 committed by Copybot
parent f78e619d87
commit 97add91248
2 changed files with 10 additions and 6 deletions

View file

@ -0,0 +1,6 @@
mixin foot-scripts()
each file in entrypointScripts(entrypoint)
script(type="text/javascript", nonce=scriptNonce, src=file, defer=deferScripts)
if (settings.splitTest.devToolbar.enabled)
each file in entrypointScripts("devToolbar")
script(type="text/javascript", nonce=scriptNonce, src=file, defer=deferScripts)

View file

@ -1,3 +1,5 @@
include ./_mixins/foot_scripts
doctype html doctype html
html( html(
lang=(currentLngCode || 'en') lang=(currentLngCode || 'en')
@ -82,11 +84,7 @@ html(
div#dev-toolbar div#dev-toolbar
block foot-scripts block foot-scripts
each file in entrypointScripts(entrypoint) +foot-scripts
script(type="text/javascript", nonce=scriptNonce, src=file, defer=deferScripts)
if (settings.splitTest.devToolbar.enabled)
each file in entrypointScripts("devToolbar")
script(type="text/javascript", nonce=scriptNonce, src=file, defer=deferScripts)
script(type="text/javascript", nonce=scriptNonce). script(type="text/javascript", nonce=scriptNonce).
window.addEventListener('DOMContentLoaded', function() { window.addEventListener('DOMContentLoaded', function() {