Building Fast WordPress Websites the art and logic of building fast - - PowerPoint PPT Presentation

building fast wordpress websites
SMART_READER_LITE
LIVE PREVIEW

Building Fast WordPress Websites the art and logic of building fast - - PowerPoint PPT Presentation

the art and logic of Building Fast WordPress Websites the art and logic of building fast wordpress websites Whos this guy? Tomas Mulder (yep, theres no "h"). Deving sites since 2002. WordPress developer since


slide-1
SLIDE 1

Building Fast WordPress Websites

the art and logic of…

slide-2
SLIDE 2

the art and logic of building fast wordpress websites

Who’s this guy?

▸ Tomas Mulder (yep, there’s no "h"). ▸ Dev’ing sites since 2002. ▸ WordPress developer since 2010. ▸ Lemme brag a bit:

slide-3
SLIDE 3
slide-4
SLIDE 4

the art and logic of building fast wordpress websites

We’ll talk about:

▸ Definition:


website (web-ˌsīt noun) speed (ˈspēd noun) speed at which a site appears in the browser.

▸ We’ll cover three topics:

1. Planning for website speed.

  • 2. Analyzing website speed.
  • 3. Improving website speed.
slide-5
SLIDE 5

Planning for Performance

getting everyone involved

slide-6
SLIDE 6

the art and logic of building fast wordpress websites

Website creation process.

▸ Discovery: ▸ Get client buy-in.

slide-7
SLIDE 7

the art and logic of building fast wordpress websites

Website creation process.

▸ Discovery: ▸ Get client buy-in. ▸ Design:

slide-8
SLIDE 8

the art and logic of building fast wordpress websites

Website creation process.

▸ Discovery: ▸ Get client buy-in. ▸ Design: ▸ Know image format advantages.

vs.

slide-9
SLIDE 9

the art and logic of building fast wordpress websites

Website creation process.

▸ Discovery: ▸ Get client buy-in. ▸ Design: ▸ Know image format advantages. ▸ Use alternatives to images/videos.

slide-10
SLIDE 10

the art and logic of building fast wordpress websites

Website creation process.

▸ Discovery: ▸ Get client buy-in. ▸ Design: ▸ Know image format advantages. ▸ Use alternatives to images/videos. ▸ Reduce font variants.

slide-11
SLIDE 11

the art and logic of building fast wordpress websites

Website creation process.

▸ Discovery: ▸ Get client buy-in. ▸ Design: ▸ Balance performance and pizzazz. ▸ Development: ▸ Dev for speed as you go, not at the end.

slide-12
SLIDE 12

the art and logic of building fast wordpress websites

Website creation process.

▸ Discovery: ▸ Get client buy-in. ▸ Design: ▸ Balance performance and pizzazz. ▸ Deployment: ▸ Analyze speed on the live server. ▸ Development: ▸ Dev for speed as you go, not at the end.

slide-13
SLIDE 13

Analyzing Website Speed

getting statistical

slide-14
SLIDE 14

R e q u e s t Processing D

  • w

n l

  • a

d

?

Abstract vector created by macrovector Business vector created by freepik Attribution:

slide-15
SLIDE 15

the art and logic of building fast wordpress websites

Chrome DevTools.

▸ Network panel. ▸ Pay attention to last three items

in bar chart: request, processing, download.

slide-16
SLIDE 16
slide-17
SLIDE 17
slide-18
SLIDE 18

the art and logic of building fast wordpress websites

Chrome DevTools (part 2).

▸ Audits panel: ▸ Lighthouse analysis tool. ▸ Opportunities list with docs. ▸ View Trace for perceived performance.

slide-19
SLIDE 19
slide-20
SLIDE 20

the art and logic of building fast wordpress websites

Google PageSpeed Insights.

▸ PageSpeed online analysis. ▸ Uses Lighthouse as well, with less

information that DevTools

▸ Can send as link to clients.

slide-21
SLIDE 21

the art and logic of building fast wordpress websites

Query Monitor plugin.

▸ Query Monitor WordPress plugin. ▸ Use for testing server processing. ▸ Look for queries that take a long

time and determine where they’re coming from.

slide-22
SLIDE 22

Improving Performance

moving the needle

slide-23
SLIDE 23

R e q u e s t Processing D

  • w

n l

  • a

d

?

Abstract vector created by macrovector Business vector created by freepik Attribution:

slide-24
SLIDE 24

the art and logic of building fast wordpress websites

The initial request.

▸ Reduce HTTP requests: ▸ Choose fewer things to load.

slide-25
SLIDE 25

the art and logic of building fast wordpress websites

The initial request.

▸ Reduce HTTP requests: ▸ Choose fewer things to load. ▸ Combine files: ▸ File concatenation.

slide-26
SLIDE 26

the art and logic of building fast wordpress websites

The initial request.

▸ Reduce HTTP requests: ▸ Choose fewer things to load. ▸ Combine files: ▸ File concatenation. ▸ Image sprites.

slide-27
SLIDE 27

the art and logic of building fast wordpress websites

The initial request.

▸ Reduce HTTP requests: ▸ Choose fewer things to load. ▸ Combine files: ▸ File concatenation. ▸ Image sprites. ▸ Add expires headers.

slide-28
SLIDE 28

R e q u e s t Processing D

  • w

n l

  • a

d

?

Abstract vector created by macrovector Business vector created by freepik Attribution:

slide-29
SLIDE 29

the art and logic of building fast wordpress websites

Server processing.

▸ Add server-side caching. ▸ Use a faster server. ▸ Refactor code to reduce expensive

tasks.

▸ Nested loops, database queries,

external APIs.

▸ Use transients to store results of

expensive operations in the database.

slide-30
SLIDE 30

R e q u e s t D

  • w

n l

  • a

d

?

Abstract vector created by macrovector Business vector created by freepik Attribution:

Processing

slide-31
SLIDE 31

the art and logic of building fast wordpress websites

Content download.

▸ Add gzip to have the server compress

before sending the response.

▸ Minify/uglify CSS and JS. ▸ Compress images, including .png

and .svg files.

▸ Use better file types:

▸ .svg>.webp/.jp2/.jpx>.jpg>.png


and for video: .webm>.mp4

▸ Use properly sized images, srcset,

and <picture>.

▸ Load things asynchronously: ▸ Lazy-load images. ▸ Lazy-load videos. ▸ Load via custom Ajax. ▸ Prevent render blocking: ▸ Load scripts in $in_footer. ▸ Use defer/async JS. ▸ Inline critical CSS, defer others.

slide-32
SLIDE 32
slide-33
SLIDE 33

Final Thoughts

  • n website performance
slide-34
SLIDE 34

the art and logic of building fast wordpress websites

Performance mindset.

▸ Plan for performance: address

performance through each phase of the creation process.

▸ Analyze speed: determine what stage to

focus on improving (request, processing, download).

▸ Improving speed: specific techniques for

addressing speed issues at each stage.

slide-35
SLIDE 35

Wait, this guy again?

▸ CodePen: codepen.io/tcmulder ▸ GitHub: github.com/tcmulder ▸ Twitter: @tcmulder ▸ LinkedIn: linkedin.com/in/tcmulder ▸ Resume: tcmulder.com ▸ Portfolio: thinkaquamarine.com/tcmulder

Questions?

are there any

slide-36
SLIDE 36

the art and logic of building fast wordpress websites

Wait, this guy again?

▸ CodePen: codepen.io/tcmulder ▸ GitHub: github.com/tcmulder ▸ Twitter: @tcmulder ▸ LinkedIn: linkedin.com/in/tcmulder ▸ Resume: tcmulder.com ▸ Portfolio: thinkaquamarine.com/tcmulder