diff --git a/libraries/src/Document/Renderer/Html/MetasRenderer.php b/libraries/src/Document/Renderer/Html/MetasRenderer.php index 0644366b4d8d7..50b18f83fcb08 100644 --- a/libraries/src/Document/Renderer/Html/MetasRenderer.php +++ b/libraries/src/Document/Renderer/Html/MetasRenderer.php @@ -49,14 +49,14 @@ public function render($head, $params = array(), $content = null) HTMLHelper::_('behavior.core'); } - // Trigger the onBeforeCompileHead event - $app = Factory::getApplication(); - $app->triggerEvent('onBeforeCompileHead'); - // Attach Assets $wa = $this->_doc->getWebAssetManager(); $wa->attachActiveAssetsToDocument($this->_doc); + // Trigger the onBeforeCompileHead event + $app = Factory::getApplication(); + $app->triggerEvent('onBeforeCompileHead'); + // Get line endings $lnEnd = $this->_doc->_getLineEnd(); $tab = $this->_doc->_getTab();