Adopt lighthouse recommendations
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ export default class extends Controller {
|
|||||||
connect() {
|
connect() {
|
||||||
window.addEventListener('scroll', () => {
|
window.addEventListener('scroll', () => {
|
||||||
this.load()
|
this.load()
|
||||||
})
|
}, { passive: true })
|
||||||
}
|
}
|
||||||
|
|
||||||
disconnect() {
|
disconnect() {
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ export default class extends Controller {
|
|||||||
connect() {
|
connect() {
|
||||||
window.addEventListener('scroll', () => {
|
window.addEventListener('scroll', () => {
|
||||||
this.toggle()
|
this.toggle()
|
||||||
})
|
}, { passive: true })
|
||||||
}
|
}
|
||||||
|
|
||||||
toggle() {
|
toggle() {
|
||||||
|
|||||||
+2
-2
@@ -19,13 +19,13 @@ export default class extends Controller {
|
|||||||
connect() {
|
connect() {
|
||||||
window.addEventListener('scroll', () => {
|
window.addEventListener('scroll', () => {
|
||||||
this.toggle()
|
this.toggle()
|
||||||
})
|
}, { passive: true })
|
||||||
}
|
}
|
||||||
|
|
||||||
disconnect() {
|
disconnect() {
|
||||||
window.removeEventListener('scroll', () => {
|
window.removeEventListener('scroll', () => {
|
||||||
this.toggle()
|
this.toggle()
|
||||||
})
|
}, { passive: true })
|
||||||
}
|
}
|
||||||
|
|
||||||
toggle() {
|
toggle() {
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
<f:if condition="{image}">
|
<f:if condition="{image}">
|
||||||
<f:then>
|
<f:then>
|
||||||
<img class="block rounded-full w-full h-auto lazyload"
|
<img class="block rounded-full w-full h-auto lazyload"
|
||||||
|
width="400"
|
||||||
|
height="400"
|
||||||
data-src="{f:uri.image(image: image, width: '400', height: '400c')}"
|
data-src="{f:uri.image(image: image, width: '400', height: '400c')}"
|
||||||
alt="{image.alternative}" title="{image.title}">
|
alt="{image.alternative}" title="{image.title}">
|
||||||
</f:then>
|
</f:then>
|
||||||
|
|||||||
@@ -10,7 +10,9 @@
|
|||||||
<a href="{f:uri.typolink(parameter: button.container.link)}" title="{button.container.label -> f:format.raw()}">
|
<a href="{f:uri.typolink(parameter: button.container.link)}" title="{button.container.label -> f:format.raw()}">
|
||||||
<f:if condition="{image}">
|
<f:if condition="{image}">
|
||||||
<f:then>
|
<f:then>
|
||||||
<img class="scale lazyload" data-src="{f:uri.image(image: image, width: '400')}"
|
<img class="scale lazyload"
|
||||||
|
data-src="{f:uri.image(image: image, width: '400')}"
|
||||||
|
width="400"
|
||||||
alt="{image.alternative}" title="{image.title}">
|
alt="{image.alternative}" title="{image.title}">
|
||||||
</f:then>
|
</f:then>
|
||||||
<f:else>
|
<f:else>
|
||||||
|
|||||||
@@ -12,6 +12,8 @@
|
|||||||
<f:if condition="{image}">
|
<f:if condition="{image}">
|
||||||
<f:then>
|
<f:then>
|
||||||
<img class="block w-full h-auto rounded-full lazyload"
|
<img class="block w-full h-auto rounded-full lazyload"
|
||||||
|
width="400"
|
||||||
|
height="400"
|
||||||
data-src="{f:uri.image(image: image, width: '400', height: '400c')}"
|
data-src="{f:uri.image(image: image, width: '400', height: '400c')}"
|
||||||
alt="{image.alternative}" title="{image.title}">
|
alt="{image.alternative}" title="{image.title}">
|
||||||
</f:then>
|
</f:then>
|
||||||
|
|||||||
@@ -16,6 +16,8 @@
|
|||||||
<f:then>
|
<f:then>
|
||||||
<img class="block rounded-full w-full h-auto lazyload"
|
<img class="block rounded-full w-full h-auto lazyload"
|
||||||
data-src="{f:uri.image(image: teaserImage, width: '400', height: '400c')}"
|
data-src="{f:uri.image(image: teaserImage, width: '400', height: '400c')}"
|
||||||
|
width="400"
|
||||||
|
height="400"
|
||||||
alt="{teaserImage.alternative}" title="{teaserImage.title}">
|
alt="{teaserImage.alternative}" title="{teaserImage.title}">
|
||||||
</f:then>
|
</f:then>
|
||||||
<f:else>
|
<f:else>
|
||||||
|
|||||||
@@ -12,6 +12,8 @@
|
|||||||
<f:if condition="{teaserImage}">
|
<f:if condition="{teaserImage}">
|
||||||
<f:then>
|
<f:then>
|
||||||
<img class="block w-full h-auto rounded-full lazyload"
|
<img class="block w-full h-auto rounded-full lazyload"
|
||||||
|
width="400"
|
||||||
|
height="400"
|
||||||
data-src="{f:uri.image(image: teaserImage, width: '400', height: '400c')}"
|
data-src="{f:uri.image(image: teaserImage, width: '400', height: '400c')}"
|
||||||
alt="{teaserImage.alternative}" title="{teaserImage.title}">
|
alt="{teaserImage.alternative}" title="{teaserImage.title}">
|
||||||
</f:then>
|
</f:then>
|
||||||
|
|||||||
@@ -160,6 +160,8 @@
|
|||||||
title="Global Compact">
|
title="Global Compact">
|
||||||
<img class="w-full h-auto lazyload"
|
<img class="w-full h-auto lazyload"
|
||||||
data-src="{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/global_compact.png')}"
|
data-src="{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/global_compact.png')}"
|
||||||
|
width="100"
|
||||||
|
height="121"
|
||||||
alt="Global Compact"/>
|
alt="Global Compact"/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -9,9 +9,9 @@
|
|||||||
<a href="{f:uri.typolink(parameter: settings.defaultHomeUid)}"
|
<a href="{f:uri.typolink(parameter: settings.defaultHomeUid)}"
|
||||||
class="block lg:pb-4"
|
class="block lg:pb-4"
|
||||||
title="{settings.defaultTitle}">
|
title="{settings.defaultTitle}">
|
||||||
<img class="block w-auto {ep:themeClasses(classes: '{ep: \'h-10 lg:h-12\', sbw: \'h-14 lg:h-24\', snz: \'h-14 lg:h-24\', uch: \'h-12 lg:h-20\'}', key: settings.themekey)}"
|
<f:image src="{settings.logoImage}"
|
||||||
src="{f:uri.image(src: settings.logoImage)}"
|
class="block w-auto {ep:themeClasses(classes: '{ep: \'h-10 lg:h-12\', sbw: \'h-14 lg:h-24\', snz: \'h-14 lg:h-24\', uch: \'h-12 lg:h-20\'}', key: settings.themekey)}"
|
||||||
alt="{settings.defaultTitle}">
|
alt="{settings.defaultTitle}"/>
|
||||||
</a>
|
</a>
|
||||||
<div class="hidden lg:block">
|
<div class="hidden lg:block">
|
||||||
<f:render section="FirstLevel" arguments="{_all}"/>
|
<f:render section="FirstLevel" arguments="{_all}"/>
|
||||||
|
|||||||
@@ -18,6 +18,8 @@
|
|||||||
)} 350w"/>
|
)} 350w"/>
|
||||||
<img class="scale lazyload" title="{image.title}" alt="{image.alternative}"
|
<img class="scale lazyload" title="{image.title}" alt="{image.alternative}"
|
||||||
src="{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/lazy.png', width: '500', height: '250')}"
|
src="{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/lazy.png', width: '500', height: '250')}"
|
||||||
|
width="500"
|
||||||
|
height="250"
|
||||||
data-src="{f:uri.image(image: image, width: '500', height: '250c-100')}"
|
data-src="{f:uri.image(image: image, width: '500', height: '250c-100')}"
|
||||||
>
|
>
|
||||||
</picture>
|
</picture>
|
||||||
@@ -46,6 +48,8 @@
|
|||||||
)} 320w"/>
|
)} 320w"/>
|
||||||
<img class="scale lazyload" title="" alt=""
|
<img class="scale lazyload" title="" alt=""
|
||||||
src="{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/lazy.png', width: '500', height: '250')}"
|
src="{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/lazy.png', width: '500', height: '250')}"
|
||||||
|
width="500"
|
||||||
|
height="250"
|
||||||
data-src="{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/header-winter.jpg', width: '500', height: '250c-100')}"
|
data-src="{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/header-winter.jpg', width: '500', height: '250c-100')}"
|
||||||
>
|
>
|
||||||
</picture>
|
</picture>
|
||||||
|
|||||||
Reference in New Issue
Block a user