2. STEFAN KREMER
‣ FREELANCE CONSULTANT
‣ WORDPRESS SINCE 2005
‣ CONTRIBUTOR
‣
@STKJJ STEFAN@DIGITAL-BRIDGE.DE
3. PAGE-PERFORMANCE
WHY SHOULD WE CARE ABOUT PAGE PERFORMANCE?
▸ Performance is about retaining users
▸ Performance is about improving conversions
▸ Performance is about user experience
▸ Performace has an ecological aspect
5. PAGE-PERFORMANCE
TTFB - TIME TO FIRST BYTE
▸ very technical metric
▸ DNS
▸ Network infrastructure
▸ Webserver stack
▸ Recommendation: Chose the right hoster! Aim for TTFB < 150 ms
6. PAGE-PERFORMANCE
FID - FIRST INPUT DELAY
▸ measures the interactivity
▸ mainly affected by huge (java)scripts
▸ Recommendation: aim for less than 100 ms
7. PAGE-PERFORMANCE
CLS - CUMMULATIVE LAYOUT SHIFT
▸ measures the visual stability
▸ layout shift score = impact fraction * distance fraction
▸ load order
▸ image area sizes
▸ Recommendation: aim for less than 0.1
8. PAGE-PERFORMANCE
LCP - LARGEST CONTENTFUL PAINT
▸ measures load performance
▸ elements that affect LCP:
▸ block-level elements (<h1>, <h2>,
… <p>, <ul>, …)
▸ <img>
▸ <videos>
▸ <images> within <svg>
▸ .css-class { background-
image: url(); } ▸ Recommendation: aim for < 2.5 s
9. PAGE-PERFORMANCE
PAGESIZE: CODE
▸ code size
▸ aim for slim and sematic correct HTML
▸ use as less JS as possible
▸ meltdown CSS
▸ Recommendation: reduce as much as possible
10. PAGE-PERFORMANCE
PAGESIZE: IMAGES
▸ image size
▸ use the correct formats (.jpg, .png, .gif, .webp)
▸ reduce width and height to the needs
▸ compress images as much as possible without affecting quality
▸ use lazy loading
▸ use <img srcset="" /> rather than <img src="" />
▸ Recommendation: reduce as much as possible
11. PAGE-PERFORMANCE
NUMBER OF REQUESTS
▸ every file that has to be loaded is one request
▸ JS
▸ CSS
▸ Images
▸ Fonts
▸ DNS lookups for external content
▸ Recommendation: reduce as much as possible
12. PAGE-PERFORMANCE
PLUGINS
▸ too many plugins?
▸ effects on frontend
▸ addtional fonts, CSS and JS
▸ effects in the backend
▸ number of SQL queries
▸ heavy CPU load
13. PAGE-PERFORMANCE
THEME "HIERARCHY"
▸ rule of thumb for code size and number of requests
▸ all purpose themes and pagebuilders
▸ childthemes
▸ from scratch or based starter themes
15. PAGE-PERFORMANCE
WP-ROCKET + IMAGIFY
▸ same vendor (WP Media)
▸ team up perfectly
▸ does minification, concatenation, JS-defer, OPcache,
▸ per page settings if things fail
16. PAGE-PERFORMANCE
CDN - CONTENT DELIVERY NETWORK
▸ be close to your audience
▸ audience is not your client, but clients of your client!
▸ what if audience is worldwide
▸ CDN can serve from various locations
17. PAGE-PERFORMANCE
MEASURES
▸ find the right hoster
▸ use slim themes
▸ minify, concatenate CSS
▸ minify, concatenate and defer JS
▸ host (google) fonts locally
▸ reduce file sizes of images and videos
▸ apply caching and if needed CDN