Drupal in a Google AMP world @bighappyface - DrupalCon Vienna + - - PowerPoint PPT Presentation

drupal in a google amp world
SMART_READER_LITE
LIVE PREVIEW

Drupal in a Google AMP world @bighappyface - DrupalCon Vienna + - - PowerPoint PPT Presentation

Drupal in a Google AMP world @bighappyface - DrupalCon Vienna + Thank you DrupalCon + Overview + What is AMP? How will AMP make things better for me? + What is involved with making my Drupal instance AMP ready? Questions/Discussion +


slide-1
SLIDE 1

Drupal in a Google AMP world

@bighappyface - DrupalCon Vienna

+

slide-2
SLIDE 2

Thank you DrupalCon

+

slide-3
SLIDE 3

Overview

+

slide-4
SLIDE 4

What is AMP? How will AMP make things better for me?

+

slide-5
SLIDE 5

What is involved with making my Drupal instance AMP ready? Questions/Discussion

+

slide-6
SLIDE 6

What is AMP?

+

slide-7
SLIDE 7

What is AMP?

+

Principles AMP HTML AMP JS AMP CACHE

slide-8
SLIDE 8

Learn all of the AMP things!

ampproject.org

+

slide-9
SLIDE 9

Principles

+

User Experience > Developer Experience > Ease of Implementation Only do things if they can be made fast Prioritise things that improve the user experience – but compromise when needed

slide-10
SLIDE 10

AMP HTML

+

HTML with some restrictions Custom document attribute - <html ⚡> No external CSS - <style amp-custom></style> Full tag substitutes - <amp-img>

slide-11
SLIDE 11
slide-12
SLIDE 12

AMP JS

+

A part of AMP - Not a custom dev framework Ensures the fast rendering of AMP HTML pages Loads resources asynchronously Defines AMP HTML elements Implements conventions and validation

slide-13
SLIDE 13
slide-14
SLIDE 14

AMP Cache

+

CDN for delivering all valid AMP documents Guarantees performance AMP document validation HTTP/2 FREE!

slide-15
SLIDE 15

How will AMP make things better for me?

+

slide-16
SLIDE 16

How will AMP make things better for me?

+

Better user experience Reduced complexity More consistency

slide-17
SLIDE 17

Better user experience

+

Fast loads with mobile-first profile Validation improves reliability of pages Better interactions with AMP components

slide-18
SLIDE 18

Reduced complexity

+

Limits on CSS (50KB, prevents use of slow styles) Only AMP elements are supported, guaranteed performance Principles and docs provide guidance and context

slide-19
SLIDE 19

More consistency

+

CDN improves global/device consistency Validation enforces consistent profile Principles and docs help consistent development

slide-20
SLIDE 20

What is involved with making my Drupal instance AMP ready?

+

slide-21
SLIDE 21

What is involved with making my Drupal instance AMP ready?

+

AMP contrib module AMP contrib theme Analytics

slide-22
SLIDE 22

AMP contrib module

+

https://www.drupal.org/project/amp Requires Lullabot AMP library Configurations, display modes and text formats Handles lots of AMP elements (e.g. <amp-analytics>)

slide-23
SLIDE 23

AMP contrib module

+

?amp query parameter for AMP version AMP URLs go to AMP view mode for content type AMP library can rewrite HTML from content fields via field format

slide-24
SLIDE 24

AMP contrib theme

+

https://www.drupal.org/project/amptheme Base theme can not be set default Base theme can not be default for AMP configs

slide-25
SLIDE 25

AMP contrib theme

+

Custom Subtheme recommended ExAMPle Subtheme provides guidance

slide-26
SLIDE 26

Analytics

+

AMP-specific analytics and ad tags <amp-pixel> or <amp-analytics> AMP-managed Client ID

slide-27
SLIDE 27

Analytics

+

Impact on URLs (e.g. ?amp) AMP Cache URLs vs domain URLs

https://www.google.com/amp/s/amp.cnn.com/cnn/2017...

slide-28
SLIDE 28

Thank you!

@bighappyface

+