Top Banner
Making Mobile Super Fast By: Cindy Krum MobileMoxie SMX Munich, 2015
39

Mobile Page Speed - SMX Munich 2015

Jul 14, 2015

Download

Mobile

Suzzicks
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Mobile Page Speed - SMX Munich 2015

Making MobileSuper Fast

By: Cindy Krum

MobileMoxie

SMX Munich, 2015

Page 2: Mobile Page Speed - SMX Munich 2015

Google Prefers Faster Websites – Especially for Mobile:

(Currently Testing a New ‘Slow Tag’ in Mobile the SERP)

Page 3: Mobile Page Speed - SMX Munich 2015

Google Says They Prefer Responsive Web Design for Mobile:

Page 4: Mobile Page Speed - SMX Munich 2015

Google Says They Prefer Responsive Web Design for Mobile:

Page 5: Mobile Page Speed - SMX Munich 2015

The Problem is Most Developers Don’t Know How to Build a Fast Responsive Design Site:April 2014 Survey of 1,000 Responsive Design Sites

Page 6: Mobile Page Speed - SMX Munich 2015

The Problem is, Responsive Design is Hard to Make Fast:

But….

Google Prefers Responsive Design

But…

Google Prefers Fast Mobile Pages

Page 7: Mobile Page Speed - SMX Munich 2015

Hurts Crawl

Efficiency

Fewer Pages are

Indexed

Slows the

Crawler High Mobile Bounces

High Site Abandonment

Hurts UX

The Problem is, Responsive Design is Hard to Make Fast:

Page 8: Mobile Page Speed - SMX Munich 2015

This Talk Will Cover:

• Round Trip Requests & Critical Path Rendering

• Image & CSS Optimization

• Caching & Compression Opitimization

Page 9: Mobile Page Speed - SMX Munich 2015

What is Critical Path Rendering?

Page 10: Mobile Page Speed - SMX Munich 2015

Understanding Round Trip Requests for Mobile:

Page 11: Mobile Page Speed - SMX Munich 2015

Understanding Round Trip Requests for Mobile:

Data Received

Data Request

Connection Request

Data Transmission

Acknowledgement

Page 12: Mobile Page Speed - SMX Munich 2015

Understanding Round Trip Requests for Mobile:

Data Received

Data Request

Connection Request

Data Transmission

Acknowledgement

Round Trip Requests

# External Assets On the Page

=

Page 13: Mobile Page Speed - SMX Munich 2015

Combine Elements to Reduce Round Trip Requests:

Page 14: Mobile Page Speed - SMX Munich 2015

Understanding Round Trip Requests for Mobile:

Data Received

Data Request

Connection Request

Data Transmission

Acknowledgement

Unique Object Count Object Size

Page 15: Mobile Page Speed - SMX Munich 2015

Understanding Round Trip Requests for Mobile:

Data Received

Data Request

Connection Request

Data Transmission

Acknowledgement

Google Says Each RTR = 200 Milliseconds for 3G/4G so…65 RTRs = 13,000 Milliseconds = 13 Seconds Latency

Unique Object Count Object Size

Page 16: Mobile Page Speed - SMX Munich 2015

Understanding Round Trip Requests for Mobile:

Data Received

Data Request

Connection Request

Data Transmission

Acknowledgement

Page 17: Mobile Page Speed - SMX Munich 2015

And Blocking These Resources Will Only Hurt You

The Only Way Google Can Accurately Tell if Your Site is Built in Responsive Design is if they can Crawl the JS and CSS.

If CSS or JS Files You Control are Blocked, Google Might Not Consider You Mobile-Friendly.

Page 18: Mobile Page Speed - SMX Munich 2015

Combine Elements to Reduce Round Trip Requests:

Page 19: Mobile Page Speed - SMX Munich 2015

The Round Trips You are Forgetting About:

Any External Links to Unused

Style Sheets/Images/Scripts

301 Redirects

Multi-Hop 301 Redirects

404 Page Requests

Web Fonts

Favicons

Script Libraries (EX: Bootstrap)

Page 20: Mobile Page Speed - SMX Munich 2015

Other Things You are Forgetting About:

Tool: Google PageSpeed Chrome Plugin

Page 21: Mobile Page Speed - SMX Munich 2015

Making Images Mobile Friendly - Sprites:

Page 22: Mobile Page Speed - SMX Munich 2015

Bad Sprite Hygiene Risks Extra Round TripsPlease Don’t Do this with Your Sprites….

Page 23: Mobile Page Speed - SMX Munich 2015
Page 24: Mobile Page Speed - SMX Munich 2015

Make Sprite Hygiene a Priority

1 Global Sprite for the Entire Site

Sprites Are NOT Cachable so Keep the File Size Small

1 Sprite for Each Page Template

Include the Template Name in the Sprite Name

Use URI Valet to Review Sprites Twice a Year

Click on the Links to Open the Sprite & See the Images it Holds

Use SpriteMe to Find Opportunities for Consolidation

Use Chrome Developer Tools to Find Un-Used Sprite Calls (Classes)

Page 25: Mobile Page Speed - SMX Munich 2015

Images Are Critical – Image Weight a Key Driver in Overall Page Weight:

Page 26: Mobile Page Speed - SMX Munich 2015

Images Are Critical – Image Weight a Key Driver in Overall Page Weight:

Page 27: Mobile Page Speed - SMX Munich 2015

Making Images Mobile Friendly – Image Servers:

Page 28: Mobile Page Speed - SMX Munich 2015

Making Images Mobile Friendly – Responsive Images:

The picture element allows you to provide multiple sources of the same image at different resolutions so the browser can pick the image of the correct size based on the viewport size.

Page 29: Mobile Page Speed - SMX Munich 2015

Making Images Mobile Friendly – Responsive Images:

The picture element allows you to provide multiple sources of the same image at different resolutions so the browser can pick the image of the correct size based on the viewport size.

Page 30: Mobile Page Speed - SMX Munich 2015

Making Images Mobile Friendly – Responsive Images:

Simple Cropping:Basic implementation, uses the source element and different @media-queries to fetch the correct image for the device-screen.

Grid System & Variable Width:

This uses a mobile first approach with 5 breakpoint. It only loads images as each breakpoint matches.

Variable width images with multiple responsive breakpoints & max-width EM sailing.

Art Direction:If the screen is small and the image is scaled down, its details cannot be seen. Using "art direction" helps overcome this problem. Rotate/resize the window and the image presentation can change.

Page 31: Mobile Page Speed - SMX Munich 2015

Caching & Compression

Page 32: Mobile Page Speed - SMX Munich 2015

Proxy Caching vs. Browser Caching:

Browser Caching

Proxy Caching

Page 33: Mobile Page Speed - SMX Munich 2015

Proxy Caching For Mobile:

Internet

Web Server

Proxy CacheEX: Your ISP

End User

End User

Page 34: Mobile Page Speed - SMX Munich 2015

Caching & Compression – Browser Caching:

Do This:

• Specify a Freshness lifetime of a week or more – Without a Freshness Lifetime Set, Your Stuff Won’t Cache.

• Remove Unnecessary Query Strings - Most Caching Bodies Won’t Cache items with a ‘?’

• Don’t Worry About Freshness if You are Changing File Names

• Use Cache Validators to Ensure Freshness (ET Tags and/or Expiration Dates)

• NOTE: Inline CSS & JS Won’t be Cached

Page 35: Mobile Page Speed - SMX Munich 2015

Compression & Minification

gZip & Minify:

JavaScript

HTML

CSS

Page 36: Mobile Page Speed - SMX Munich 2015

Proper CDN Settings:

Page 37: Mobile Page Speed - SMX Munich 2015
Page 38: Mobile Page Speed - SMX Munich 2015

http://bit.ly/1BTgIFe

Page 39: Mobile Page Speed - SMX Munich 2015

Thanks!!

Cindy Krum

CEO & Founder, MobileMoxie

[email protected]

@Suzzicks