All pages
Powered by GitBook
1 of 2

Loading...

Loading...

PageSpeed Insights

Note: This article is work in progress.

Messwerte

First Contentful Paint

First Contentful Paint gibt an, wann der erste Text oder das erste Bild gezeichnet wird.

Speed Index

Der Geschwindigkeitsindex gibt an, wie schnell die Inhalte einer Seite sichtbar dargestellt werden.

Largest Contentful Paint

Largest Contentful Paint gibt an, wie lange das Zeichnen des längsten Texts oder des größten Bilds dauert.

Time to Interactive

Die Zeit bis Interaktivität entspricht der Zeit, die vergeht, bis die Seite vollständig interaktiv ist.

Total Blocking Time

Summe aller Zeiträume (in Millisekunden) zwischen FCP und Zeit bis Interaktivität, wenn die Aufgabendauer 50 ms überschreitet.

Cumulative Layout Shift

Cumulative Layout Shift misst die Bewegung sichtbarer Elemente innerhalb des Darstellungsbereichs.

Empfehlungen

Mithilfe diese Empfehlungen lässt sich die Ladezeit Ihrer Seite möglicherweise verkürzen. Sie haben keinen direkten Einfluss auf die Leistungsbewertung.

Bilder in modernen Formaten bereitstellen

Bildformate wie WebP und AVIF bieten oft eine bessere Komprimierung als PNG oder JPEG, wodurch sie schneller heruntergeladen werden und weniger Daten verbrauchen.

Hinweis:

Hier sind vor allem Produktbilder relevant. Weder Shopware noch ThemeWare® haben einen Einfluss auf Bildformate für individuell hochgeladene Bilder. Optimiere deine Bilder bevor du sie in die Medien-Verwaltung lädst.

Tipp: Eine "Lazy Loading"-Erweiterung aus dem Shopware Store kann ebenfalls helfen.

Bilder richtig dimensionieren

Stellen Sie Bilder bereit, die eine angemessene Größe haben, um mobile Daten zu sparen und die Ladezeit zu verbessern.

Hinweis:

Dieser Punkt ist leider nicht einfach lösbar, da sich viele Bilder in der Storefront fluide sind und sich der verfügbaren Elemente-Breite anpassen.

Tipp: Eine "Lazy Loading"-Erweiterung aus dem Shopware Store kann ebenfalls helfen.

Erstreaktionszeit des Servers verringern

Achten Sie auf eine möglichst kurze Serverantwortzeit für das Hauptdokument, weil alle anderen Anfragen davon abhängen.

Hinweis:

Dieser Punkt ist stark mit der Server-Performance verknüpft.

Reduzieren Sie nicht verwendetes JavaScript

Sie können nicht verwendetes JavaScript reduzieren und das Laden von Skripts aufschieben, bis sie benötigt werden, um den Datenverbrauch durch Netzwerkaktivität zu senken.

Hinweis:

Shopware generiert eine JS-Datei mit dem gesamten JS-Code der Storefront (Shopware, Theme sowie aller Apps bzw. Plugins).

ThemeWare® wurde von Grund auf so entwickelt, dass nur der nötigste Code kompiliert wird.

Reduzieren Sie nicht verwendete CSS

Sie können ungültige Regeln in Stylesheets reduzieren und CSS aufschieben, die nicht für ohne Scrollen sichtbare Inhalte verwendet werden, um den Datenverbrauch durch Netzwerkaktivität zu senken.

Hinweis:

Shopware generiert eine CSS-Datei mit dem gesamten CSS-Code der Storefront (Shopware, Theme sowie aller Apps bzw. Plugins).

ThemeWare® wurde von Grund auf so entwickelt, dass nur der nötigste Code kompiliert wird. Zudem kannst du im Tab "Weiteres" optionalen CSS-Code deaktivieren.

Ressourcen beseitigen, die das Rendering blockieren

Ressourcen blockieren den First Paint Ihrer Seite. Versuchen Sie, wichtiges JS und wichtige CSS inline anzugeben und alle nicht kritischen JS und Stile aufzuschieben.

Hinweis:

Shopware generiert eine JS- und eine CSS-Datei mit dem gesamten JS- bzw. CSS-Code der Storefront (Shopware, Theme sowie aller Erweiterungen).

ThemeWare® wurde von Grund auf so entwickelt, dass nur der nötigste Code kompiliert wird. Zudem kannst du im Tab "Weiteres" optionalen und nicht benötigten CSS-Code deaktivieren.

Bilder effizient codieren

Optimierte Bilder werden schneller geladen und verbrauchen weniger mobile Daten.

Empfehlungen zur effizienten Bildkodierung:

  • Moderne Bildformate verwenden

Diagnose

Weitere Informationen zur Leistung Ihrer App finden Sie hier. Diese Angaben haben keinen direkten Einfluss auf die Leistungsbewertung.

Bildelemente haben keine explizite width und height [CLS]

Legen Sie eine explizite Breite und Höhe für Bildelemente fest, um Layoutverschiebungen zu reduzieren und CLS zu verbessern.

Umfangreiche Layoutverschiebungen vermeiden [CLS]

Der Cumulative Layout Shift (CLS) misst, wie stark sich Elemente auf einer Webseite während des Ladens unerwartet verschieben. Solche Verschiebungen können Nutzer irritieren und zu einem schlechten Benutzererlebnis führen, beispielsweise wenn plötzlich auftauchende Inhalte den bereits sichtbaren Text oder Buttons verschieben.

Empfehlungen zur Minimierung von Layoutverschiebungen:

  • Größen für Medien festlegen: Stelle sicher, dass für alle Bilder, Videos und eingebetteten Inhalte feste Breiten und Höhen definiert sind. Dadurch kann der Browser den benötigten Platz bereits beim Laden reservieren, was unerwartete Verschiebungen verhindert.

Avoid an excessive DOM size

Dies bedeutet, dass deine Webseite nicht zu viele HTML-Elemente haben sollte. Ein sehr großer DOM-Baum – also extrem viele Elemente im Seiten-Code – ist problematisch, weil der Browser beim Laden und Anzeigen mehr arbeiten muss und die Seite dadurch langsamer wird.

  • Gesamtzahl der DOM-Elemente:

WebP, AVIF oder JPEG 2000 sind oft effizienter als JPG oder PNG.

  • WebP bietet z. B. 30 % kleinere Dateien als vergleichbare JPEGs bei gleicher Qualität.

  • Bilder komprimieren

    • Tools wie können die Dateigröße reduzieren.

    • Verlustfreie oder verlustbehaftete Komprimierung je nach Anwendungsfall wählen.

  • Bildgröße anpassen

    • Bilder nicht größer hochladen als notwendig.

    • CSS oder HTML nicht zur Größenanpassung großer Bilder nutzen, sondern sie direkt in der passenden Auflösung speichern.

  • Responsive Bilder nutzen

    • Das srcset-Attribut verwenden, um je nach Gerät unterschiedliche Bildgrößen zu laden.

  • Lazy Loading aktivieren

    • Mit loading="lazy" werden Bilder erst geladen, wenn sie im sichtbaren Bereich erscheinen.

  • Webfonts optimieren: Nutze die CSS-Eigenschaft font-display: swap, um zu verhindern, dass beim Laden von Schriftarten der Text unsichtbar wird oder seine Größe ändert, was zu Layoutverschiebungen führen kann.

  • Dynamische Inhalte sorgfältig laden: Achten Sie darauf, dass dynamisch eingefügte Inhalte, wie beispielsweise Pop-ups oder Banner, den vorhandenen Inhalt nicht unerwartet verschieben.

  • Unter 1.500 Elementen ist ideal.
  • Über 3.000 Elemente kann die Leistung beeinträchtigen.

  • Maximale DOM-Tiefe (Verschachtelungstiefe):

    • Unter 32 Ebenen ist empfohlen.

    • Eine zu tiefe Verschachtelung kann die Rendering-Performance verlangsamen.

  • Maximale Anzahl an Child-Elementen pro Node:

    • Unter 60 direkten Kind-Elementen pro Eltern-Element ist optimal.

    • Eine sehr große Anzahl kann die Rechenzeit für Layout-Berechnungen erhöhen.

  • Hinweis:

    Shopware hat von Haus aus bereits einen recht großen DOM-Baum auf welchen du kaum einen Einfluss hast. Halte die Navigations-Struktur klein und nutze möglichst wenige und einfache Elemente in deinen Erlebniswelten.

    Weitere Informationen.
    Weitere Informationen.
    Weitere Informationen
    Weitere Informationen.
    Weitere Informationen
    Weitere Informationen
    Weitere Informationen
    Weitere Informationen.
    Weitere Informationen.
    Weitere Informationen
    Weitere Informationen
    Weitere Informationen.
    Weitere Informationen.
    Weitere Informationen
    TinyPNG

    SEO & Pagespeed

    We are very often asked whether ThemeWare® can do anything even better in terms of SEO/pagespeed, or how to improve your shop with the theme.

    This is interesting because there is obviously a belief that themes are almost solely responsible for SEO/Pagespeed, i.e. that when you optimize the theme or when the theme is SEO/Pagespeed-optimized, the issue is almost completely resolved.

    This is actually not the case.

    In fact, it is completely the opposite. The theme itself only plays a small part in this. The rest are conceptual and content-related things on which the theme has almost no influence.

    With ThemeWare® we can do a lot for you, but not everything – because SEO & Pagespeed also depend on your settings and individual content.

    In this article you will find many useful tips that will help you to optimize your shop.


    ThemeWare®

    Of course, a CMS system like Shopware and an extremely configurable theme is always at a slight "disadvantage" compared to a highly individually programmed and specialized system that has been reduced to the bare essentials. However, this removes the comfort that is offered to you in reverse. And you probably can't set up such a shop yourself just like that.

    With ThemeWare® you benefit from over 7 years of development time and experience in programming Shopware themes. From the ground up, optimization is an inherent part of ThemeWare® and is a constant process that is taken into account with every change and every update.

    Be certain in any case: ThemeWare® is SEO-optimized, ThemeWare® is pagespeed-optimized.


    We have applied (almost*) all of the above tips in our PageSpeed Demo Shop. Convince yourself of the result:


    An important factor for Pagespeed is the Server Performance itself. How fast are files accessed, how quickly are requests processed, how high is the workload (e.g. shared hosting), is the server configuration optimal, etc.?

    There are many differences in the server performance block, but also many opportunities for optimization.

    A possible measured value in the pagespeed test would be the TTFB value (Time to First Byte). If the measured value goes upwards, optimization is probably still possible in this direction. GZip compression, for example, can provide a significant boost here.

    Neither Shopware nor ThemeWare100% PageSpeed Insights – Unique Performance, Accessibility, Best Practices and SEO have any influence on this block. However, you can optimize a lot here yourself.

    Tip

    • Use the free plugin "" from Friends of Shopware to check the performance of the server and Shopware. Apply the recommended optimizations to improve server response times. This is a critical factor, as the server response time influences the loading speed directly.


    In order for the source code to be loaded quickly, a cleaned up source code makes sense. Of course, with a CMS system, your hands are tied in a certain way, but Shopware is already very well optimized in this respect.

    ThemeWare® has been a pioneer in the field of Shopware themes for several years and only delivers the source code that is actually needed.

    Tip

    • Install and activate the free "" from Friends of Shopware. This plugin reduces the file size of your HTML files by removing unnecessary spaces and comments, which shortens the loading time.


    The most important topic besides server performance is the block "Images", at least it is the most underestimated topic, which has a lot of potential.

    The topic of "images" is pretty extensive, but especially when many large images have to be loaded, for example in product listings or Shopping Experiences, there is plenty of room for optimization.

    Shopware generates thumbnails for different viewports from all the images you are uploading. Therefore, it is not a big problem to upload large images as Shopware automatically creates smaller variants.

    However, what you are able to influence is the compression. With free tools such as you are often able to significantly reduce the file size of your images. This is beneficial for the loading time.

    You just have to find the perfect balance between good performance and good image quality.

    As you can see, the block "image optimization" is a very important aspect in your sphere of influence.

    Most of the images in the shop are user-defined content. It is therefore up to you to optimize them.

    Tips

    • Use the "" plugin, again from Friends of Shopware, to load images only when they are in the user's field of vision. This reduces the initial loading time, as not all images have to be loaded immediately.

    • .webp Images: The .webp format offers higher compression while maintaining the same quality compared to conventional formats such as .jpeg or .png. This further reduces the loading times.


    Another important aspect for your shop are your shop pages' meta-data. A precise "title" and an accurate "description" are not only important for SEO, but also for the user experience.

    Tip

    • Make sure that all pages have a precise title and description, which is not only important for SEO, but also for the user experience.


    When configuring your colors, make sure that the contrast ratio for text and background colors is sufficient.

    Another important aspect is the specifying of the image size (width/height) in the source code.

    If for instance the image size is not specified in the source code, the browser has no information about how much space it should take up. Therefore, it does not calculate any space for the image. When the image has been loaded, the image is rendered in the appropriate size. As a result, the surrounding content may shift (layout shift), which is not ideal for SEO optimization.

    Unfortunately, the whole thing is not as easy to solve as it sounds. The majority of images in Shopware are added by the shop operator. Therefore, the actual image size is not known in the storefront. You can only optimize manually using CSS:

    Example: .header-logo-main-link img { aspect-ratio: auto 220 / 40; }

    Tips

    • A sufficient contrast ratio is essential for the accessibility of your shop. The recommendations from PageSpeed Insights are a valuable guideline in this regard. The Deque University's tool() can help to precisely check and improve these aspects.

    • Defining width and height for images helps browsers to reserve the necessary space in the layout of the page before the image has been loaded. This avoids layout shifts and improves the user experience. Use CSS aspect-ratio for images without fixed width


    The control over browser caching through the .htaccess file is really practical in order to reduce loading times for frequent visitors. By setting specific file types for caching, visitors can access the content faster because they load it from their local storage instead of having to download it every time they visit your shop. This means less time waiting and a generally more pleasant shopping experience.

    Tip

    • Controlling browser caching via the .htaccess file is an effective method for serving returning visitors more quickly. By defining caching rules for certain file types, you can ensure that users load content from their local storage instead of re-downloading it every time they visit.


    We have applied (almost) all* of the above tips in our PageSpeed demo shop. Convince yourself of the result:


    Sometimes customers ask us why ThemeWare® has got more CSS, more JS or more HTML code than the Shopware standard theme or other themes from different providers.

    Well, that's simply because with ThemeWare® you get the most comprehensive theme in the Shopware Store. The comparison with the Shopware standard theme therefore is a rather lopsided one. It's like comparing apples and oranges: ThemeWare® offers more than 400 configuration fields, the Shopware standard theme 30.

    For the numerous sales-promoting configurations, extensions and additional features, more codes are naturally necessary. This simply applies to all custom themes.

    We are well aware of this, therefore we put a lot of effort into code optimization and scrutinize each line of a code at least twice and pin as much code as possible to conditions. We are pioneers in this regard and have gained a lot of experience with thousands of customers in recent years. Like everywhere else, there are certainly imitators, but we have designed and developed ThemeWare® for Shopware 6 from the ground up for compatibility (HC-Architecture®) and code reduction. Thanks to ThemeWare® you can benefit from this every day.


    Shopware compiles the entire JS code and the entire CSS code of all extensions (plugins, apps and themes) each into a JS file and a CSS file. In terms of file access, this is not wrong, but there is no way to move code for non-visible elements to the end of the HTML document.

    With Shopware 6.6, Shopware has made considerable improvements here, especially in the "JavaScript" block, thereby significantly speeding up the storefront.

    Tip

    • Use as few individual JS or CSS codes as possible for individual customizations.


    ThemeWare® does not use any external scripts and does not load any external files. You can nevertheless load external scripts or files, of course, but do so thoughtfully.

    In this context, we would like to take a brief look at the topic of "fonts": With ThemeWare® you can integrate two fonts into the storefront that are located locally on your server. You can of course also load additional "fonts", but we recommend sticking to two fonts in order to avoid having to load too many font files.

    Tip:

    • Use as few external scripts and files as possible (e.g. Google Fonts or Font Awesome).


    These optimizations should improve the PageSpeed of your Shopware installation and ThemeWare® themes significantly. Please note that regular checks and adjustments are necessary to maintain continuous performance.

    Tip

    • Update your Shopware shop regularly to the latest version (e.g. Shopware 6.6).

    • Update your ThemeWare® Theme regularly to the latest version.


    *) Certainly, our server could be a little faster in terms of response time, but for a pure demo shop this is a bit excessive.

    Add alt texts to all images via the Media Manager to improve accessibility and SEO.

    and
    height
    .
    htaccess
    <IfModule mod_headers.c>
        <FilesMatch "\.(ico|jpg|jpeg|webp|gif|png|pdf|mp3|mp4|webm|mov|svg)$">
            Header set Cache-Control "public, max-age=31536000, no-transform"
        </FilesMatch>
        <FilesMatch "\.(html|htm|xml|txt|xsl|css|js|woff2|ttf)$">
            Header set Cache-Control "public, max-age=7200, must-revalidate"
        </FilesMatch>
    </IfModule> 
    
    <IfModule mod_expires.c>
        ExpiresActive On
        ExpiresByType image/jpg "access 1 week"
        ExpiresByType image/jpeg "access 1 week"
        ExpiresByType image/webp "access 1 week"
        ExpiresByType image/gif "access 1 week"
        ExpiresByType image/png "access 1 week"
        ExpiresByType text/css "access 1 day"
        ExpiresByType text/html "access 1 day"
        ExpiresByType application/pdf "access 1 week"
        ExpiresByType text/x-javascript "access 1 day"
        ExpiresByType application/x-shockwave-flash "access 1 month"
        ExpiresByType image/x-icon "access 1 week"
        ExpiresDefault "access 1 week"
    </IfModule>
    
    <IfModule mod_deflate.c>
        AddOutputFilterByType DEFLATE application/atom+xml
        AddOutputFilterByType DEFLATE application/javascript
        AddOutputFilterByType DEFLATE application/json
        AddOutputFilterByType DEFLATE application/rss+xml
        AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
        AddOutputFilterByType DEFLATE application/x-font-ttf
        AddOutputFilterByType DEFLATE application/x-web-app-manifest+json
        AddOutputFilterByType DEFLATE application/xhtml+xml
        AddOutputFilterByType DEFLATE application/xml
        AddOutputFilterByType DEFLATE font/opentype
        AddOutputFilterByType DEFLATE image/svg+xml
        AddOutputFilterByType DEFLATE image/webp
        AddOutputFilterByType DEFLATE image/x-icon
        AddOutputFilterByType DEFLATE text/css
        AddOutputFilterByType DEFLATE text/html
        AddOutputFilterByType DEFLATE text/plain
        AddOutputFilterByType DEFLATE text/x-component
        AddOutputFilterByType DEFLATE text/xml
        AddOutputFilterByType DEFLATE text/javascript
    </IfModule>

    Convince yourself in our PageSpeed Demo Shop:

    Pagespeed 🚀

    Server-Performance

    HTML-Optimization

    Image optimization

    Hint: The images that we provide you with our are deliberately not compressed because you are supposed to process them further.

    Hint: The ThemeWare® graphics that are intended to be used permanently and unchanged, such as the have all already been perfectly optimized!

    Meta-data

    Accessibility and SEO

    Contrast ratio

    Explicit width and height of image elements

    Browser-Caching

    Example

    Convince yourself in our PageSpeed demo shop:

    Reducing unnecessary source code

    Reducing JavaScript and CSS

    Hint: Anything that ThemeWare® does not need for the representation of the storefront, for example because a feature is not being used, will not be compiled into the storefront. There are also various configuration fields to manually reduce CSS code for unneeded features.

    Reducing external data

    Conclusion

    Tools
    HTML Minify plugin
    TinyPNG
    LazySizes and LazyLoading for matching image sizes
    https://dequeuniversity.com/rules/axe/4.8/color-contrast
    100% PageSpeed Insights – Unique Performance, Accessibility, Best Practices and SEO
    100% PageSpeed Insights
    image download package
    payment and shipping logos
    ThemeWare® PageSpeed InsightsThemeWare® Pagespeed
    Discover our PageSpeed Demo Shop
    ThemeWare® PageSpeed InsightsThemeWare® Pagespeed
    Discover our PageSpeed demo shop
    Logo
    Logo