Optimierungs-Allerlei

  • Hi zusammen,

    ich betreibe die Seite http://www.bundesamt-magische-wesen.de mit dem Theme Sahifa.

    Wollte mich daran machen, die Performance etwas zu steigern, und testete die Seite mit gtmetrics und pingdom. Aktiviere ich WPML (Ist mit dem Theme kompatibel, die Seite soll später mal in englisch und arabisch laufen) kapituliert gtmetrics, bei Pingdom verdoppelt sich die Ladegeschwindigkeit nahezu und auch die Größe der Seite schwillt an auf nahzu 3 MB.

    Habe die htaccess auch modifiziert, Inhalt ist unten beigefügt. Das bringt übrigens wirklich eine ganze Menge.

    Aber ein paar Sachen sind da, spez. yslow, das bekomme ich nicht so recht in den Griff.

    Cookie free Domains
    gtmetrics meckert z.B. was cookiefree Domains betrifft und räumt dem eine recht hohe Priorität ein. Hat sich jemand von euch damit schon einmal auseinandergesetzt? Oder hat eine Lösung?

    Besten Dank im voraus

    Klaus


    Der Inhalt meiner htaccess, mit der ich die Ladegeschwindigkeit schon recht gut in den Griff bekommen konnte:


    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    #Expire Header
    <FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf|fonts)$">
    ExpiresDefault "access plus 2 hours"
    </FilesMatch>

    <ifModule mod_gzip.c>
    mod_gzip_on Yes
    mod_gzip_dechunk Yes
    mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
    mod_gzip_item_include handler ^cgi-script$
    mod_gzip_item_include mime ^text/.*
    mod_gzip_item_include mime ^application/x-javascript.*
    mod_gzip_item_include mime ^application/javascript.*
    mod_gzip_item_exclude mime ^image/.*
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
    </ifModule>

    # Leverage Browser Caching by setting HTTP header expires
    <IfModule mod_expires.c>
    ExpiresActive on
    ExpiresDefault "access plus 1 week"

    # CSS
    ExpiresByType text/css "access plus 1 month"

    # Data interchange
    ExpiresByType application/json "access plus 0 seconds"
    ExpiresByType application/ld+json "access plus 0 seconds"
    ExpiresByType application/vnd.geo+json "access plus 0 seconds"
    ExpiresByType application/xml "access plus 0 seconds"
    ExpiresByType text/xml "access plus 0 seconds"

    # Favicon (cannot be renamed!) and cursor images
    ExpiresByType image/x-icon "access plus 1 year"

    # HTML components (HTCs)
    ExpiresByType text/x-component "access plus 1 week"

    # HTML
    ExpiresByType text/html "access plus 0 seconds"

    # JavaScript
    ExpiresByType application/javascript "access plus 1 month"

    # Manifest files
    ExpiresByType application/manifest+json "access plus 1 year"
    ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"
    ExpiresByType application/x-shockwave-flash "access plus 1 month"

    ExpiresByType text/cache-manifest "access plus 0 seconds"

    # Media
    ExpiresByType audio/ogg "access plus 1 month"
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType video/mp4 "access plus 1 month"
    ExpiresByType video/ogg "access plus 1 month"
    ExpiresByType video/webm "access plus 1 month"

    # Web feeds
    ExpiresByType application/atom+xml "access plus 1 hour"
    ExpiresByType application/rss+xml "access plus 1 hour"

    # Web fonts
    ExpiresByType application/font-woff "access plus 1 year"
    ExpiresByType application/font-woff2 "access plus 1 year"
    ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
    ExpiresByType application/x-font-ttf "access plus 1 year"
    ExpiresByType font/opentype "access plus 1 year"
    ExpiresByType image/svg+xml "access plus 1 year"
    </IfModule>

    # BEGIN Cache-Control Headers
    <ifModule mod_headers.c>
    <filesMatch ".(ico|jpe?g|png|gif|swf)$">
    Header set Cache-Control "public"
    </filesMatch>
    <filesMatch ".(css)$">
    Header set Cache-Control "public"
    </filesMatch>
    <filesMatch ".(js)$">
    Header set Cache-Control "private"
    </filesMatch>
    <filesMatch ".(x?html?|php)$">
    Header set Cache-Control "private, must-revalidate"
    </filesMatch>
    </ifModule>
    # END Cache-Control Headers


    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    </IfModule>

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

  • und was ist die Frage?

    Steht da doch:

    Cookie free Domains
    gtmetrics meckert z.B. was cookiefree Domains betrifft und räumt dem eine recht hohe Priorität ein. Hat sich jemand von euch damit schon einmal auseinandergesetzt? Oder hat eine Lösung?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!