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
2020-09-02 07:40:44 +02:00
parent e49c74c546
commit 118bb9a829
3 changed files with 8 additions and 2 deletions

View File

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