Do not append javascript at the body but inject them in the element/module

Consent tools might interrupt the rendering
This commit is contained in:
David Molineus committed 2020-09-02 07:40:44 +02:00
1 parent e49c74c546
commit 118bb9a829
3 files changed
+8 -2

No files matched your search

@@ -9,5 +9,5 @@
</div>
<!-- indexer::continue -->
<?php $GLOBALS['TL_BODY'][] = '<script>' . $this->javascript . '</script>'; ?>
<script><?= $this->javascript ?></script>
@@ -9,4 +9,4 @@
</div>
<!-- indexer::continue -->
<?php $GLOBALS['TL_BODY'][] = '<script>' . $this->javascript . '</script>'; ?>
<script><?= $this->javascript ?></script>