SlideShare a Scribd company logo
PWA for the PHP Developer
Ben Marks | Senior Evangelist | Magento, an Adobe Company joind.in
Ben Marks // @benmarks // ben@magento.com
© 2019 Adobe. All Rights Reserved.
Why this talk?
1
The Web is still evolving.
_________________
Not unfamiliar to developers or
users, we continue to see changes
in how the Web is built, delivered,
consumed, and experienced.
3
2
PWA is TNGT, sort of.
_________________
So often what is stated to be
TNGT is really TNGH.
PWA is not hype. It is a gentle,
logical evolution borne from best
practices.
3
New tech for new times.
_________________
Some of the most substantial
shifts in Web experience have
started with small technical
additions to the current
technology & techniques.
_________________ _________________ _________________
© 2019 Adobe. All Rights Reserved.
Progressive (Open) Web Application
P
Progressive
_________________
Progressive because of “progressive
enhancement”, and poetically
because of the gradual technical
evolution over time J
4
W
Web
_________________
Web because of the fundamental
base in Web technologies &
delivery: HTTPS, JS, JSON.
Also, they “live” in the Web.
A
Application
_________________
Application because of an app
icon, an app-y entry point, and if
needed, app-y capabilities.
_________________ _________________ _________________
The Web is still Evolving, and the Fundamentals Still Matter
© 2019 Adobe. All Rights Reserved.
Progression of Web content focus over time:
6
Delivery Interactivity Experience
*discoverability is important, but OOS for this presentation
© 2019 Adobe. All Rights Reserved.
<form/>, a.k.a: Interactivity, the Early Years
7
Forms, the original interactive UI
Sou https://medium.freecodecamp.org/a-step-by-step-guide-to-getting-started-with-html-forms-
7f77ae4522b5
© 2019 Adobe. All Rights Reserved.
Early promises of cross-platform rich UI
8
Who remembers Java and Flash applets?
Source: http://weelookang.blogspot.com/2010/06/ejs-open-source-micrometer-java-applet.html
© 2019 Adobe. All Rights Reserved.
Later, HTML5 and JavaScript Displaced Java Applets & Flash
9
JavaScript and HTML5 could provide interactive animation UI
http://weelookang.blogspot.com/2016/11/flight-dynamics-gimbal-javascript-html5.html?view=classic
© 2019 Adobe. All Rights Reserved.
Web Content Evolution: What happened?
§ Web went from just-PC to always-with-me
§ Apps (and walled gardens)
§ Consumers have new expectations for
information in context
10
Credit: AP
© 2019 Adobe. All Rights Reserved.
Later, technologies began to bridge the gap between Web and mobile
11
§ Adobe AIR Applications
§ Windows Store Apps
§ Chrome Packaged Applications
§ Firefox OS Packaged Applications
§ Cordova/PhoneGap + Crosswalk Apps
§ BlackBerry WebWorks Apps
§ W3C Widgets
§ WebOS Apps
§ Chromium Embedded Framework
§ Electron
Source: https://infrequently.org/2015/06/progressive-apps-escaping-tabs-without-losing-our-soul/
PWA is TNGT
© 2019 Adobe. All Rights Reserved.
Current realities: Apps are Popular!
Estimated app downloads in 2018: 205 Billion
13
Source: https://www.statista.com/statistics/271644/worldwide-free-and-paid-mobile-app-store-downloads/
© 2019 Adobe. All Rights Reserved.
Current realities: Apps are getting better are retention
Retention >1 use is improving
14
Source: http://info.localytics.com/blog/21-percent-of-users-abandon-apps-after-one-use
© 2019 Adobe. All Rights Reserved.
Current realities: the Web is Still the Real Deal
§ Most users are on the Web, not in App Stores
§ Apps are heavy in multiple dimensions
§ Acquisition & installation are “frictional”, whether from the Web or in a walled garden
§ App use is a limited context
§ Bandwidth may be a concern
§ Content delivery is complicated by… a lot
§ Eleventy-billion display form factors
§ Keyboard+mouse vs Touch input
§ Connection quality
§ Advertising, analytic, and developer cruft
15
© 2019 Adobe. All Rights Reserved.
Current realities
§ We have solutions for these challenges of modern delivery & interactivity:
§ RWD
§ Progressive enhancement
§ HTTP/2
§ Progressive Web Apps employ these concepts, adding additional capabilities, and either
requiring or encouraging best practices
16
PWA: New Tech for New Times
© 2019 Adobe. All Rights Reserved.
So, what do we get?
18
Credit: Infrequently.org
§ The answer to this question has evolved over the past
two years
§ Add to homescreen
§ Sync-able & snappy offline functionality
§ Access to the app tray / task switcher
§ Server push: re-engage, background sync
© 2019 Adobe. All Rights Reserved.
A PWA has exactly three requirements…
§ Originate from a Secure Origin, i.e. be served
over TLS and no active mixed content
§ Provide an application manifest, i.e. a JSON
file with specific parameters defined
§ Load while offline, i.e. a Service Worker is
required
19
© 2019 Adobe. All Rights Reserved.
A PWA has exactly three requirements…
§ Originate from a Secure Origin, i.e. be served
over TLS and no active mixed content
§ Provide an application manifest, i.e. a JSON
file with specific parameters defined
§ Load while offline, i.e. a Service Worker is
required
20
© 2019 Adobe. All Rights Reserved.
A PWA has exactly three requirements…
§ Originate from a Secure Origin, i.e. be served
over TLS and no active mixed content
§ Provide an application manifest, i.e. a JSON
file with specific parameters defined
§ Load while offline, i.e. a Service Worker is
required
21
© 2019 Adobe. All Rights Reserved.
Service worker: Registration
22
Source: https://developers.google.com/web/fundamentals/primers/service-workers/
© 2019 Adobe. All Rights Reserved.
Service worker: Install
23
Source: https://developers.google.com/web/fundamentals/primers/service-workers/
© 2019 Adobe. All Rights Reserved.
Service worker: fetch
24
Source: https://developers.google.com/web/fundamentals/primers/service-workers/
© 2019 Adobe. All Rights Reserved.
Use Lighthouse to help with best practices
§ All URLs should respond 200, even when offline
§ Responsive design to handle mobile, tablet, and
PC application
§ First load fast at 3G bandwidth
§ Cross-browser functional
§ Page transitions shouldn’t be blocked (e.g., app-
like response)
§ Each page its own URL
25
Google Lighthouse
https://developers.google.com/web/progressive-web-apps/checklist
© 2019 Adobe. All Rights Reserved.
Be aware of latest limitations, abilities, etc
26
§ https://whatwebcando.today/ - visualize browser+OS capabilities
§ May need to set Chrome flags depending on workflow and OS
§ https://pwa.rocks/ is a nice showcase of several apps for reference
§ Magento’s PWA Studio might be of interest: https://magento-research.github.io/pwa-studio/
© 2019 Adobe. All Rights Reserved.
Grokking PWA
It’s different…
…but not that different.
It’s not always obvious…
…but it’s out there already.
There are limitations…
…but not for long.
27
Credit: Infrequently.org
© 2019 Adobe. All Rights Reserved.
Thank you!
Ben Marks
Senior Evangelist
Magento, an Adobe Company
@benmarks
ben@magento.com
m+WA: +18436704240
28
https://joind.in/talk/59e4c
Agree? Disagree?
What would you like to see?
Join me!

More Related Content

What's hot (20)

PDF
Outlook on Magento 2
Matthias Glitzner-Zeis
 
PPTX
Imagine recap-devhub
Magento Dev
 
PPTX
PWA basics for developers
Filip Rakowski
 
PPTX
Vue storefront London PWA meetup
Filip Rakowski
 
PDF
Sergii Shymko - Code migration tool for upgrade to Magento 2
Meet Magento Italy
 
PPTX
Maintainable design
Filip Rakowski
 
PPTX
Max Yekaterynenko: Magento 2 overview
Meet Magento Italy
 
PDF
Max Yekaterinenko - Magento 2 & Quality
Meet Magento Italy
 
PPT
12 Amazing Features of Magento 2
Schogini Systems Pvt Ltd
 
PDF
How To Install Magento 2 (updated for the latest version)
Magestore
 
PPT
Meet Magento Belarus - Elena Leonova
Amasty
 
PDF
Magento 2 - An Intro to a Modern PHP-Based System - Northeast PHP 2015
Joshua Warren
 
PDF
Fundamentals of Extending Magento 2 - php[world] 2015
David Alger
 
PPTX
Vue Storefront - Progressive Web App for Magento (1.9, 2.x) - MM18DE speech
Divante
 
PDF
Oleh Kobchenko - Configure Magento 2 to get maximum performance
Meet Magento Italy
 
PDF
The journey of mastering Magento 2 for Magento 1 developers
Gabriel Guarino
 
PDF
Guillaume Thibaux - Can we win the fight against performance bottlenecks? Les...
Meet Magento Italy
 
PPTX
Sergii Shymko: Magento 2: Composer for Extensions Distribution
Meet Magento Italy
 
PDF
Magento 2 Design Patterns
Max Pronko
 
PDF
Magento 2 Modules are Easy!
Ben Marks
 
Outlook on Magento 2
Matthias Glitzner-Zeis
 
Imagine recap-devhub
Magento Dev
 
PWA basics for developers
Filip Rakowski
 
Vue storefront London PWA meetup
Filip Rakowski
 
Sergii Shymko - Code migration tool for upgrade to Magento 2
Meet Magento Italy
 
Maintainable design
Filip Rakowski
 
Max Yekaterynenko: Magento 2 overview
Meet Magento Italy
 
Max Yekaterinenko - Magento 2 & Quality
Meet Magento Italy
 
12 Amazing Features of Magento 2
Schogini Systems Pvt Ltd
 
How To Install Magento 2 (updated for the latest version)
Magestore
 
Meet Magento Belarus - Elena Leonova
Amasty
 
Magento 2 - An Intro to a Modern PHP-Based System - Northeast PHP 2015
Joshua Warren
 
Fundamentals of Extending Magento 2 - php[world] 2015
David Alger
 
Vue Storefront - Progressive Web App for Magento (1.9, 2.x) - MM18DE speech
Divante
 
Oleh Kobchenko - Configure Magento 2 to get maximum performance
Meet Magento Italy
 
The journey of mastering Magento 2 for Magento 1 developers
Gabriel Guarino
 
Guillaume Thibaux - Can we win the fight against performance bottlenecks? Les...
Meet Magento Italy
 
Sergii Shymko: Magento 2: Composer for Extensions Distribution
Meet Magento Italy
 
Magento 2 Design Patterns
Max Pronko
 
Magento 2 Modules are Easy!
Ben Marks
 

Similar to PWA for PHP Developers (20)

PDF
Kendo UI workshop introduction - PUG Baltic Annual Conference 2017
Alen Leit
 
PDF
[Webinar] Expanding future mobile commerce with Magento PWA Studio
CedCommerce
 
PDF
What Are Progressive Web Application Development
App Verticals
 
PDF
Progressive Web Apps –The Future of Apps
Ashish Saxena
 
PDF
IRJET-Garbage Monitoring and Management using Internet of things
IRJET Journal
 
PDF
9 Best Tools to Leverage for Progressive Web App Development
codecraftcrew
 
PPTX
Why Progressive Web Apps For WordPress - WordCamp Finland
Imran Sayed
 
PPTX
Progressive Web Apps - Overview & Getting Started
Gaurav Behere
 
PDF
Enterprise DevOps Series: Using VS Code & Zowe
DevOps.com
 
PDF
Php Leads Web2 0
guestf34485
 
PPTX
Why progressive apps for WordPress - WordSesh 2020
Imran Sayed
 
PDF
Progressive Web Apps / GDG DevFest - Season 2016
Abdelrahman Omran
 
PPT
The Ultimate Guide to Modern Web App Development.ppt
Asad Majeed
 
PDF
Go for Progressive Web Apps. Get a Better, Low Cost, Mobile Presence
Magic Software
 
PPTX
Progressive web apps For e-Commerce- How do they go hand-in-hand?
ShantanuApurva1
 
PDF
IRJET- Creating Website as a Service using Web Components
IRJET Journal
 
PDF
Progressive Web Apps - Porque nativo no es significa mejor
Israel Blancas
 
PDF
Web application development full &amp; detailed guide for 2022
Metricoid Technology
 
PDF
Progressive web apps
Akshay Sharma
 
PPTX
How to Prepare Your Toolbox for the Future of SharePoint Development
Progress
 
Kendo UI workshop introduction - PUG Baltic Annual Conference 2017
Alen Leit
 
[Webinar] Expanding future mobile commerce with Magento PWA Studio
CedCommerce
 
What Are Progressive Web Application Development
App Verticals
 
Progressive Web Apps –The Future of Apps
Ashish Saxena
 
IRJET-Garbage Monitoring and Management using Internet of things
IRJET Journal
 
9 Best Tools to Leverage for Progressive Web App Development
codecraftcrew
 
Why Progressive Web Apps For WordPress - WordCamp Finland
Imran Sayed
 
Progressive Web Apps - Overview & Getting Started
Gaurav Behere
 
Enterprise DevOps Series: Using VS Code & Zowe
DevOps.com
 
Php Leads Web2 0
guestf34485
 
Why progressive apps for WordPress - WordSesh 2020
Imran Sayed
 
Progressive Web Apps / GDG DevFest - Season 2016
Abdelrahman Omran
 
The Ultimate Guide to Modern Web App Development.ppt
Asad Majeed
 
Go for Progressive Web Apps. Get a Better, Low Cost, Mobile Presence
Magic Software
 
Progressive web apps For e-Commerce- How do they go hand-in-hand?
ShantanuApurva1
 
IRJET- Creating Website as a Service using Web Components
IRJET Journal
 
Progressive Web Apps - Porque nativo no es significa mejor
Israel Blancas
 
Web application development full &amp; detailed guide for 2022
Metricoid Technology
 
Progressive web apps
Akshay Sharma
 
How to Prepare Your Toolbox for the Future of SharePoint Development
Progress
 
Ad

More from Ben Marks (6)

PDF
Open Source Commerce Melee
Ben Marks
 
PPTX
A World Without PHP
Ben Marks
 
PDF
Magento 2: Modernizing an eCommerce Powerhouse
Ben Marks
 
PDF
eCommerce and Open Source: Pot, PHP, and Unlimited Potential
Ben Marks
 
PPTX
Open Source eCommerce: PHP Power
Ben Marks
 
PPTX
Finding Your Way: Understanding Magento Code
Ben Marks
 
Open Source Commerce Melee
Ben Marks
 
A World Without PHP
Ben Marks
 
Magento 2: Modernizing an eCommerce Powerhouse
Ben Marks
 
eCommerce and Open Source: Pot, PHP, and Unlimited Potential
Ben Marks
 
Open Source eCommerce: PHP Power
Ben Marks
 
Finding Your Way: Understanding Magento Code
Ben Marks
 
Ad

Recently uploaded (20)

PDF
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
PDF
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
PDF
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
PPTX
How Apagen Empowered an EPC Company with Engineering ERP Software
SatishKumar2651
 
PDF
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
PDF
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
PPTX
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
PPTX
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
PDF
Capcut Pro Crack For PC Latest Version {Fully Unlocked} 2025
hashhshs786
 
PDF
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
PPTX
Engineering the Java Web Application (MVC)
abhishekoza1981
 
PDF
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
PPT
MergeSortfbsjbjsfk sdfik k
RafishaikIT02044
 
PDF
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
PPTX
An Introduction to ZAP by Checkmarx - Official Version
Simon Bennetts
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PDF
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
PDF
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
PDF
Streamline Contractor Lifecycle- TECH EHS Solution
TECH EHS Solution
 
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
How Apagen Empowered an EPC Company with Engineering ERP Software
SatishKumar2651
 
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
Capcut Pro Crack For PC Latest Version {Fully Unlocked} 2025
hashhshs786
 
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
Engineering the Java Web Application (MVC)
abhishekoza1981
 
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
MergeSortfbsjbjsfk sdfik k
RafishaikIT02044
 
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
An Introduction to ZAP by Checkmarx - Official Version
Simon Bennetts
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
Streamline Contractor Lifecycle- TECH EHS Solution
TECH EHS Solution
 

PWA for PHP Developers

  • 1. PWA for the PHP Developer Ben Marks | Senior Evangelist | Magento, an Adobe Company joind.in
  • 3. © 2019 Adobe. All Rights Reserved. Why this talk? 1 The Web is still evolving. _________________ Not unfamiliar to developers or users, we continue to see changes in how the Web is built, delivered, consumed, and experienced. 3 2 PWA is TNGT, sort of. _________________ So often what is stated to be TNGT is really TNGH. PWA is not hype. It is a gentle, logical evolution borne from best practices. 3 New tech for new times. _________________ Some of the most substantial shifts in Web experience have started with small technical additions to the current technology & techniques. _________________ _________________ _________________
  • 4. © 2019 Adobe. All Rights Reserved. Progressive (Open) Web Application P Progressive _________________ Progressive because of “progressive enhancement”, and poetically because of the gradual technical evolution over time J 4 W Web _________________ Web because of the fundamental base in Web technologies & delivery: HTTPS, JS, JSON. Also, they “live” in the Web. A Application _________________ Application because of an app icon, an app-y entry point, and if needed, app-y capabilities. _________________ _________________ _________________
  • 5. The Web is still Evolving, and the Fundamentals Still Matter
  • 6. © 2019 Adobe. All Rights Reserved. Progression of Web content focus over time: 6 Delivery Interactivity Experience *discoverability is important, but OOS for this presentation
  • 7. © 2019 Adobe. All Rights Reserved. <form/>, a.k.a: Interactivity, the Early Years 7 Forms, the original interactive UI Sou https://medium.freecodecamp.org/a-step-by-step-guide-to-getting-started-with-html-forms- 7f77ae4522b5
  • 8. © 2019 Adobe. All Rights Reserved. Early promises of cross-platform rich UI 8 Who remembers Java and Flash applets? Source: http://weelookang.blogspot.com/2010/06/ejs-open-source-micrometer-java-applet.html
  • 9. © 2019 Adobe. All Rights Reserved. Later, HTML5 and JavaScript Displaced Java Applets & Flash 9 JavaScript and HTML5 could provide interactive animation UI http://weelookang.blogspot.com/2016/11/flight-dynamics-gimbal-javascript-html5.html?view=classic
  • 10. © 2019 Adobe. All Rights Reserved. Web Content Evolution: What happened? § Web went from just-PC to always-with-me § Apps (and walled gardens) § Consumers have new expectations for information in context 10 Credit: AP
  • 11. © 2019 Adobe. All Rights Reserved. Later, technologies began to bridge the gap between Web and mobile 11 § Adobe AIR Applications § Windows Store Apps § Chrome Packaged Applications § Firefox OS Packaged Applications § Cordova/PhoneGap + Crosswalk Apps § BlackBerry WebWorks Apps § W3C Widgets § WebOS Apps § Chromium Embedded Framework § Electron Source: https://infrequently.org/2015/06/progressive-apps-escaping-tabs-without-losing-our-soul/
  • 13. © 2019 Adobe. All Rights Reserved. Current realities: Apps are Popular! Estimated app downloads in 2018: 205 Billion 13 Source: https://www.statista.com/statistics/271644/worldwide-free-and-paid-mobile-app-store-downloads/
  • 14. © 2019 Adobe. All Rights Reserved. Current realities: Apps are getting better are retention Retention >1 use is improving 14 Source: http://info.localytics.com/blog/21-percent-of-users-abandon-apps-after-one-use
  • 15. © 2019 Adobe. All Rights Reserved. Current realities: the Web is Still the Real Deal § Most users are on the Web, not in App Stores § Apps are heavy in multiple dimensions § Acquisition & installation are “frictional”, whether from the Web or in a walled garden § App use is a limited context § Bandwidth may be a concern § Content delivery is complicated by… a lot § Eleventy-billion display form factors § Keyboard+mouse vs Touch input § Connection quality § Advertising, analytic, and developer cruft 15
  • 16. © 2019 Adobe. All Rights Reserved. Current realities § We have solutions for these challenges of modern delivery & interactivity: § RWD § Progressive enhancement § HTTP/2 § Progressive Web Apps employ these concepts, adding additional capabilities, and either requiring or encouraging best practices 16
  • 17. PWA: New Tech for New Times
  • 18. © 2019 Adobe. All Rights Reserved. So, what do we get? 18 Credit: Infrequently.org § The answer to this question has evolved over the past two years § Add to homescreen § Sync-able & snappy offline functionality § Access to the app tray / task switcher § Server push: re-engage, background sync
  • 19. © 2019 Adobe. All Rights Reserved. A PWA has exactly three requirements… § Originate from a Secure Origin, i.e. be served over TLS and no active mixed content § Provide an application manifest, i.e. a JSON file with specific parameters defined § Load while offline, i.e. a Service Worker is required 19
  • 20. © 2019 Adobe. All Rights Reserved. A PWA has exactly three requirements… § Originate from a Secure Origin, i.e. be served over TLS and no active mixed content § Provide an application manifest, i.e. a JSON file with specific parameters defined § Load while offline, i.e. a Service Worker is required 20
  • 21. © 2019 Adobe. All Rights Reserved. A PWA has exactly three requirements… § Originate from a Secure Origin, i.e. be served over TLS and no active mixed content § Provide an application manifest, i.e. a JSON file with specific parameters defined § Load while offline, i.e. a Service Worker is required 21
  • 22. © 2019 Adobe. All Rights Reserved. Service worker: Registration 22 Source: https://developers.google.com/web/fundamentals/primers/service-workers/
  • 23. © 2019 Adobe. All Rights Reserved. Service worker: Install 23 Source: https://developers.google.com/web/fundamentals/primers/service-workers/
  • 24. © 2019 Adobe. All Rights Reserved. Service worker: fetch 24 Source: https://developers.google.com/web/fundamentals/primers/service-workers/
  • 25. © 2019 Adobe. All Rights Reserved. Use Lighthouse to help with best practices § All URLs should respond 200, even when offline § Responsive design to handle mobile, tablet, and PC application § First load fast at 3G bandwidth § Cross-browser functional § Page transitions shouldn’t be blocked (e.g., app- like response) § Each page its own URL 25 Google Lighthouse https://developers.google.com/web/progressive-web-apps/checklist
  • 26. © 2019 Adobe. All Rights Reserved. Be aware of latest limitations, abilities, etc 26 § https://whatwebcando.today/ - visualize browser+OS capabilities § May need to set Chrome flags depending on workflow and OS § https://pwa.rocks/ is a nice showcase of several apps for reference § Magento’s PWA Studio might be of interest: https://magento-research.github.io/pwa-studio/
  • 27. © 2019 Adobe. All Rights Reserved. Grokking PWA It’s different… …but not that different. It’s not always obvious… …but it’s out there already. There are limitations… …but not for long. 27 Credit: Infrequently.org
  • 28. © 2019 Adobe. All Rights Reserved. Thank you! Ben Marks Senior Evangelist Magento, an Adobe Company @benmarks [email protected] m+WA: +18436704240 28 https://joind.in/talk/59e4c Agree? Disagree? What would you like to see? Join me!