Skip to content

Commit

Permalink
Merge pull request #131 from t3n/bugfix/script-style-position
Browse files Browse the repository at this point in the history
BUGFIX: Script include was outside body tag
  • Loading branch information
Sebobo authored Jan 26, 2021
2 parents 4e974ce + 0243ce1 commit 3a352a1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Resources/Private/Fusion/Root.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ prototype(t3n.Neos.Debug:Styles) < prototype(Neos.Fusion:Tag) {

@if.notInBackend = ${!documentNode.context.inBackend}
@if.isActive = ${Configuration.setting('t3n.Neos.Debug.enabled') && Configuration.setting('t3n.Neos.Debug.htmlOutput.enabled')}
@position = 'before closingBodyTag'
}

prototype(t3n.Neos.Debug:JavaScript) < prototype(Neos.Fusion:Tag) {
Expand All @@ -24,10 +23,13 @@ prototype(t3n.Neos.Debug:JavaScript) < prototype(Neos.Fusion:Tag) {
@if.notInBackend = ${!documentNode.context.inBackend}
@if.isHtml = ${request.format == 'html'}
@if.isActive = ${Configuration.setting('t3n.Neos.Debug.enabled') && Configuration.setting('t3n.Neos.Debug.htmlOutput.enabled')}
@position = 'before closingBodyTag'
}

prototype(Neos.Neos:Page) {
head.contentCacheDebugStyle = t3n.Neos.Debug:Styles
contentCacheDebugScript = t3n.Neos.Debug:JavaScript
head.contentCacheDebugStyle = t3n.Neos.Debug:Styles {
@position = 'end'
}
contentCacheDebugScript = t3n.Neos.Debug:JavaScript {
@position = 'before closingBodyTag'
}
}

0 comments on commit 3a352a1

Please sign in to comment.