Präsentation und weiterführende Links zum Vortrag am 27.4.2019 beim WordCamp Vienna.

Der Vortrag bietet eine kurze Einführung in die Grundlagen der Ladezeit-Optimierung, die auch für Einsteiger verständlich ist. In der zweiten Hälfte werden praxisorientierte Lösungen für WordPress vorgestellt, die speziell für fortgeschrittene Nutzer und Entwickler einfach anwendbar sind.

Die Präsentation

Links zu Analyse-Werkzeugen

Liefern Kennzahlen und Hinweise für die PageSpeed- und Ladezeit-Optimierung.

WordPress-Plugins zur Ladezeit-Optimierung

Informationen zur Verwendung sind in der Präsentation zu finden.

WordPress Caching-Plugins

Ein Muss für jede WordPress-Website.

Ladezeit-Optimierung per .htaccess

Serverseitig kannst du die Ladezeit deiner Webseite z.B. mit folgenden Angaben in deiner .htaccess-Datei verbessern. Mehr Details zu diesem Optimierungsverfahren erfährst du auch hier: https://technumero.com/increase-page-speed-using-htaccess-wordpress/

# START GZIP COMPRESSION

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_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*

# END GZIP COMPRESSION

# START DEFLATE COMPRESSION

AddOutputFilterByType DEFLATE "application/atom+xml" \
"application/javascript" \
"application/json" \
"application/ld+json" \
"application/manifest+json" \
"application/rdf+xml" \
"application/rss+xml" \
"application/schema+json" \
"application/vnd.geo+json" \
"application/vnd.ms-fontobject" \
"application/x-font" \
"application/x-font-opentype" \
"application/x-font-otf" \
"application/x-font-truetype" \
"application/x-font-ttf" \
"application/x-javascript" \
"application/x-web-app-manifest+json" \
"application/xhtml+xml" \
"application/xml" \
"font/eot" \
"font/otf" \
"font/ttf" \
"font/opentype" \
"image/bmp" \
"image/svg+xml" \
"image/vnd.microsoft.icon" \
"image/x-icon" \
"text/cache-manifest" \
"text/css" \
"text/html" \
"text/javascript" \
"text/plain" \
"text/vcard" \
"text/vnd.rim.location.xloc" \
"text/vtt" \
"text/x-component" \
"text/x-cross-domain-policy" \
"text/xml"

# END DEFLATE COMPRESSION

# START ENABLE KEEP ALIVE

Header set Connection keep-alive

# END ENABLE KEEP ALIVE

# START EXPIRES CACHING

ExpiresActive On
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/x-icon "access 1 year"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/javascript "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresDefault "access 1 month"

# END EXPIRES CACHING

# BEGIN Cache-Control Headers

<filesmatch "\.(ico|jpe?g|png|gif|swf)$"="">
Header set Cache-Control "public"

<filesmatch "\.(css)$"="">
Header set Cache-Control "public"

<filesmatch "\.(js)$"="">
Header set Cache-Control "private"

<filesmatch "\.(x?html?|php)$"="">
Header set Cache-Control "private, must-revalidate"

# END Cache-Control Headers

# ENABLE LITESPEED CACHE START

CacheEnable public
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^GET|HEAD$
RewriteCond %{HTTP_HOST} ^sample.com|sample.net|sample.org [NC]
RewriteCond %{REQUEST_URI} !login|admin|register|post|cron
RewriteCond %{QUERY_STRING} !nocache
RewriteRule .* - [E=Cache-Control:max-age=300]

# ENABLE LITESPEED CACHE END

# START Disable server signature #
ServerSignature Off
# END Disable server signature #

Sie benötigen Unterstützung bei der Ladezeit-Optimierung? Als spezialisierte WordPress-Agentur in Wien helfen wir Ihnen gerne weiter!