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

PWAmps for the mobile web

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →

PWAmps for the mobile web

Avatar for Adora Nwodo

Adora Nwodo

May 04, 2019

More Decks by Adora Nwodo

Other Decks in Technology

Transcript

  1. Software Engineer GDG Ajah Co-Organizer Women Techmakers Ajah Ambassador FSD

    Lagos Co-Organizer Blogger, adorahack.com Twitter, @theadoranwodo GitHub, @adoranwodo Hi, I’m Adora 2
  2. 5

  3. 7

  4. Progressive Web Apps Progressive web apps combine the flexibility of

    the web with the experience of mobile applications. 9
  5. Accelerated Mobile Pages 12 Web page speed improves user experience

    Maintain flexibility and control and reduce code complexity Easy to get started!
  6. 13 <amp-img alt="A view of the sea" src="images/sea.jpg" width="900" height="675"

    layout="responsive"> </amp-img> AMP tags <amp-accordion disable-session-states> <section> <h2>Section 1</h2> <p>Content in section 1.</p> </section> <section> <h2>Section 2</h2> <div>Content in section 2.</div> </section> <section expanded> <h2>Section 3</h2> <amp-img src="images/squirrel.jpg" width="320" height="256"></amp-img> </section> </amp-accordion> <amp-image-lightbox id="lightbox1" layout="nodisplay"> </amp-image-lightbox>
  7. AMP up Background bootstrapping of PWA shell while the user

    interacts with the AMP (first) page using <amp-install-serviceworker>. PWA + AMP AMP down Using AMP pages as a data source for PWAs. 18
  8. 19 Fetch cached PWA shell instead of cached AMP page

    to prevent XHR to find AMP doc. AMP down contd.
  9. 20

  10. ◉ Your website has a lot of static content on

    individual pages ◉ To reduce infrastructure complexity ◉ If your content monetizes and works fine within the AMP ecosystem 22 When to use PWAMPs
  11. ◉ Discovery on Search engines (Google & Bing) ◉ Fast

    first impression ◉ Fast page navigation ◉ Rich interactions and features ◉ Easy re-entry 23 PWAMP Benefits
  12. 26