Upgrade to Pro — share decks privately, control downloads, hide ads and more …

AMP intro

AMP intro

We currently did an AMP phase one project for Hillarys

where we create static amp-html pages

to see if it made in improvement in traffic.

Im here to talk about the pitfalls we came across as we went along.

Matthew Claffey

January 16, 2017
Tweet

More Decks by Matthew Claffey

Other Decks in Programming

Transcript

  1. Benefits to using AMP • Website is delivered fast to

    mobile users • Your website gets better google search rankings because the website is more performant
  2. Gotchas • Everything has to be static HTML • Maximum

    of 50kb CSS • Amp elements have to have width and height set inline • No support on external scripts • No typekit support • No picture elements • Carousels can be difficult • Constant content amend requests
  3. Benefit of using Panini • Re-use components • Used JSON

    data for our pages instead of hardcoded • Compiles to html • Prevents amp-validation errors
  4. 50kb CSS Solution – ”Get all of the things…” Add

    all of your HTML components that you need to one waste.html file.
  5. Useful Resources • AMP Validator Google chrome extension • https://validator.ampproject.org/

    • https://www.npmjs.com/search?q=amp • https://ampbyexample.com/