overleaf/services/web/app/views/project/ide-react.pug
Alf Eaton 345f51bedb [ide-react] Improve initial loading behaviour (#15916)
* Defer script loading
* Only mount IdePage once everything has connected

GitOrigin-RevId: 32f16214f26ac6a6d71a9dd332b3c35b8b82deae
2023-11-28 09:04:11 +00:00

29 lines
858 B
Text

extends ../layout
block vars
- var suppressNavbar = true
- var suppressFooter = true
- var suppressSkipToContent = true
- var deferScripts = true
- metadata.robotsNoindexNofollow = true
block entrypointVar
- entrypoint = 'pages/ide'
block content
main#ide-root
.loading-screen
.loading-screen-brand-container
.loading-screen-brand(style="height: 20%;")
h3.loading-screen-label #{translate("loading")}
span.loading-screen-ellip .
span.loading-screen-ellip .
span.loading-screen-ellip .
block append meta
include ./editor/meta
block prepend foot-scripts
each file in (useOpenTelemetry ? entrypointScripts("tracing") : [])
script(type="text/javascript", nonce=scriptNonce, src=file, defer=deferScripts)
script(type="text/javascript", nonce=scriptNonce, src=(wsUrl || '/socket.io') + '/socket.io.js', defer=deferScripts)