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

Increase performance and users engagement with ...

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

Increase performance and users engagement with PWAs

Progressive Web Applications (PWAs) are the state of art of modern web solutions. In this session we will analyze PWAs from different perspectives and describe which tools we can use to develop them with ease. By choosing the proper caching strategies it is possible to drastically improve the performance of our web site, providing data even without a valid network connection. We will then proceed seeing how to overcome the limitations of the Cache API in order to create a truly seamless experience. In addition, push notifications will be presented as a powerful mechanism to retain and re-engage our users.

Avatar for Francesco Leardini

Francesco Leardini

October 22, 2019
Tweet

Other Decks in Programming

Transcript

  1. BASLE BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA HAMBURG

    COPENHAGEN LAUSANNE MUNICH STUTTGART VIENNA ZURICH Francesco Leardini Senior Consultant & Angular Trainer @paco_ITA dev.to/paco_ita
  2. Stale While Revalidate Strategy Ideal for: resources updating frequently, but

    providing the latest version is not so important @paco_ITA
  3. Cache & Network Race Strategy Ideal for: devices with slow

    disk access and performance has first priority @paco_ITA
  4. Angular Service Worker With angular-cli (1.6+) we can easily turn

    an existing application into a PWA: Two new files are added to our project: • ngsw-config.json • manifest.json @paco_ITA
  5. Cloud Firestore • Out of the beta release (Oct 2017

     Jan 2019) • NoSQL Database • Real-time data updates (3-way binding) • Offline support for mobile (iOS/Android) and web @paco_ITA
  6. Right time: collect geo-location data to know your users time

    zone Personal content: tailor the content for the single recipients Clear actions: make it clear what the user can do 3 Golden Rules @paco_ITA
  7. Voluntary Application Server Identification (VAPID) Cryptographic public/private key pair: {

    "publicKey": "BLBx-qEa0qKbGDTyyP9KTS5K7ZL0K7TfmOKSPqp8vQF0DaG8hpSBknz_x3qEFo", "privateKey": "PkVHOUKgY29NM7myQXXoGbp_bH_9j-cxW5cO-fGcSsA" } Public key: used as a identifier for subscribing the user to notifications sent by our server Private key: used by the server to sign messages, before sending them to the Push Service @paco_ITA