Skip to content

Commit

Permalink
Fix: Don't set defer if type is module
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnitto authored Jul 16, 2024
1 parent 65a9f48 commit 53016d6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Resources/Private/Fusion/Prototypes/Markup.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ prototype(Jonnitto.PhotoSwipe:Markup) < prototype(Neos.Fusion:Component) {
data-photoswipe-options={Json.stringify(Array.filter(props.options))}
data-photoswipe-attributes={props.additonalPswpContainerAttributes ? Json.stringify(Array.filter(props.additonalPswpContainerAttributes)) : null}
data-photoswipe-i18n={Json.stringify(Array.filter(props.i18n))}
defer
></script>
<script
@if={!props.useJsModule && props.includeFetch}
Expand All @@ -61,7 +60,6 @@ prototype(Jonnitto.PhotoSwipe:Markup) < prototype(Neos.Fusion:Component) {
type="module"
src={StaticResource.uri('Jonnitto.PhotoSwipe', 'Public/Modules/Fetch.js')}
data-photoswipe-fetch-options={Json.stringify(Array.filter(Array.concat({errorMsg: props.fetchErrorMessage}, props.fetchOptions)))}
defer
></script>
<script
@if={!props.useJsModule && props.includeTemplate}
Expand All @@ -76,7 +74,6 @@ prototype(Jonnitto.PhotoSwipe:Markup) < prototype(Neos.Fusion:Component) {
type="module"
src={StaticResource.uri('Jonnitto.PhotoSwipe', 'Public/Modules/Template.js')}
data-photoswipe-template-options={Json.stringify(Array.filter(Array.concat({errorMsg: props.contentErrorMessage}, props.templateOptions)))}
defer
></script>
`
}

0 comments on commit 53016d6

Please sign in to comment.