feat: move footer scripts to core partial

main
Barış Soner Uşaklı 4 years ago
parent 7388cb0c5f
commit 4dcc9fad23

@ -17,25 +17,10 @@
</div>
<!-- ENDIF !isSpider -->
<script defer src="{relative_path}/assets/nodebb.min.js?{config.cache-buster}"></script>
{{{each scripts}}}
<script defer type="text/javascript" src="{scripts.src}"></script>
{{{end}}}
<script>
window.addEventListener('DOMContentLoaded', function () {
require(['forum/footer']);
<!-- IF useCustomJS -->
{{customJS}}
<!-- ENDIF useCustomJS -->
});
</script>
<div class="hide">
<!-- IMPORT 500-embed.tpl -->
</div>
<!-- IMPORT partials/footer/js.tpl -->
</body>
</html>

Loading…
Cancel
Save