# Largest Contentful Paint-Bild wurde mit Lazy Loading geladen

**URL:** <https://forum.shopware.com/t/largest-contentful-paint-bild-wurde-mit-lazy-loading-geladen/100300>\
**Category:** Administration\
**Created:** [28. Juni 2023 um 13:38 UTC](https://forum.shopware.com/t/largest-contentful-paint-bild-wurde-mit-lazy-loading-geladen/100300 "2023-06-28T13:38:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbm](https://avatars.discourse-cdn.com/v4/letter/c/a9a28c/32.png) [@cbm](https://forum.shopware.com/u/cbm)\
**Post date:** [28. Juni 2023 um 13:38 UTC](https://forum.shopware.com/t/largest-contentful-paint-bild-wurde-mit-lazy-loading-geladen/100300/1 "2023-06-28T13:38:41Z")

</div>

Folgende Meldung bekomme ich bei Pagespeed:  
„Largest Contentful Paint-Bild wurde mit Lazy Loading geladen“

Das in Frage kommende Bild ist Teil einer Erlebniswelt ( Standard-Bild Element).  
Ich sehe leider keine Möglichkeit hier die Lademethode von „lazy“ auf „eager“ zu stellen.

 ![Screenshot 2023-06-28 153809](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/6/f/6f3dcfa240cd9ffbdcc46be7475654713eee1485.jpeg)

Gibt es Tipps?

---

<div class="post-metadata">

**Author:** ![edv1](https://avatars.discourse-cdn.com/v4/letter/e/b2d939/32.png) [@edv1](https://forum.shopware.com/u/edv1)\
**Post date:** [18. Juli 2023 um 15:35 UTC](https://forum.shopware.com/t/largest-contentful-paint-bild-wurde-mit-lazy-loading-geladen/100300/2 "2023-07-18T15:35:01Z")

</div>

```auto
<img src="blabla.jpg" class="cms-image" loading="lazy">

```

Das Attribut wird direkt im Template für das CMS Element gesetzt (loading=„lazy“). Du müsstet das Template bearbeiten.

Template: „/element/cms-element-image.html.twig“ Wenn du das „lazy loading“ Attribut entfernst entfernst, rendert Shopware ein "loading=„eager“.

```auto
{% set attributes = {
    'class': 'cms-image',
    'alt': (element.data.media.translated.alt ?: ''),
    'title': (element.data.media.translated.title ?: ''),
    'loading': 'lazy'
} %}

```
