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

@@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [3.2.1] - 2020-09-02
### Fixed
- Do not append javascript to the body anymore as consent tools might interrupt rendering
## [3.2.0] - 2020-08-28
### Added

View File

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

View File

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