Progressive Web Apps with
Polymer
@marcushellberg / vaadin
State of the web on mobile
86%
14%
TIME

SPENT
ON SITES
TIME

SPENT
ON APPS
“Apps continued to cement their
lead, and commanded 86% of
the average US mobile
consumer’s time”
Flurry 2014/04/01
Source: comScore Mobile Metrix, U.S., Age 18+, June 2015
vs.13% 87%
Mobile web Apps
What's holding back the web
on mobile?
THIS S**T
IT'S 2016
No other platform tries to run
desktop apps on phones
NOPE.
Progressive web apps with polymer
The web has no app model
example.com/
example.com/parts/item
vs.
Progressive web apps with polymer
The problem is friction
Load store
Click install
Accept permissions
Download, wait...
Find in store
Use


Let’s say I
intrigued
~1000 of you
800
640
512
410
328
262
“In a consumer
mobile app, every
step you make a
user perform
before they get
value out of your
app will cost you
~20% of users...”
http://blog.gaborcselle.com/2012/10/every-step-costs-you-20-of-users.html
Progressive web apps with polymer
...but what if I
can get users
directly into a
store/install
flow?
Click install 800
Accept permissions 640
Download, wait 512
Find, Use 410
fiksu.com/resources/fiksu-indexes
80%OF TIME SPENT IS IN
USERS’ TOP 3 APPS
Source: comScore Mobile Metrix, U.S., Age 18+, June 2015
Progressive web apps with polymer
86%
14%
TIME

SPENT
ON SITES
TIME

SPENT
ON APPS
14%
40%
GAMING &
ENT.
28%
SOCIAL
20%
OTHER
66%
SITES
6%
APPS
28%
SITES &
APPS
PRIMARY CHANNEL FOR
COMMERCIAL TASKS
USER TIME SPENT
ON MOBILE DEVICES
average apps used

per month by

a mobile user
27
sites navigated to per

month by the average

Chrome for Android user
100+
Source: Nielsen Mobile Report June 2015
Today's Mobile Web: Broad Reach, Low Engagement
Top 1000 mobile apps vs. top 1000 mobile web properties
10.9
Monthly unique visitors (MM)
3.3
Average minutes per visitor
Mobile webApps
8.9
201.8
Source: comScore Mobile Metrix, U.S., Age 18+, June 2015
What's missing?
1.Home screen access
2.Push Notifications
3.Offline support
1. Home screen access
Progressive web apps with polymer
Progressive Web Apps!
Currently, On EVERY PAGE
<meta name="theme-color" content="#303F9F">
<link rel="manifest" href="manifest.json">
HTML
{
"short_name": "Air Horner",
"name": "Air Horner",
"start_url": "/",
"display": "standalone",
"icons": [{
"src": "icons/icon-192.png",
"sizes": "192x192",
"type": "image/png",
"density": "4.0"
}],
"orientation": "portrait",
"gcm_sender_id": "129757602160"
}
JSON Manifest
With Manifests
Metadata delegated to one file
Extensible & crawlable
Progressive web apps with polymer
Time Spent on Flipkart Lite
3x
70 seconds 210 seconds
Returning Visitors week over week
40%
+63%
Conversions from Homescreen
visits
2. Push notifications
1. Works even if browser closed
2. Requires Service Worker
3. Needs permission, not Install
Respectful Prompts Succeed
+50%
repeat visits within 3 months
26%
increase in average spend

per visit by members arriving

via a push notification
72%
increase in time spent for users
visiting via a push notification
3. Offline support
Progressive web apps with polymer
Enter service worker
Progressive web apps with polymer
Event-driven
Best-effort while executing event handlers

Shut down between events
Idle SWs can be reclaimed to limit memory use

Only one active instance
1:N SW/tabs. Node-like I/O via events
example.com
GET	/app.html	HTTP/1.1	
HOST	example.com	
...
HTTP/1.1	200	OK	
Date:	Thu,	19	Feb	2015	05:21:56	GMT	
...
example.com
//	sw.js	
onfetch	=	function(e)	{	
		if(e.request.url	==	"app.html")	{	
				e.respondWith(	
						caches.match(e.request)	
				);	
		}	
		if(e.request.url	==	"content.json")	{	
				//	go	to	the	network	for	updates,	
				//	meanwhile,	use	cached	content	
				fetch(...).then(function(r)	{	
						r.asJSON().then(function(json)	{	
								e.client.postMessage(json);	
						});	
				});	
		}	
};
GET	/app.html	HTTP/1.1	
HOST	example.com	
...
GET	/content.json	HTTP/1.1	
HOST	example.com	
...
GET	/content.json	HTTP/1.1	
HOST	example.com	
...
HTTP/1.1	200	OK	
Date:	Thu,	19	Feb	2015...	
...
Service Workers Are 

Network Progressive
Enhancement
Progressive Apps work without SW for first load & old browsers.
Progressive web apps with polymer
Impact of speed on bounce rates
Source: SOASTA; September, 2015
2.4 2.7 3.0 3.3 3.6 3.9 4.2 4.5 4.8 5.1 5.4 5.7 6.0 6.3 6.6 6.9 7.2 7.5 7.8 8.1 8.4 8.7 9.0 9.3 9.6 9.9
180,000
140,000
100,000
60,000
0
20,000
58
45
32
19
0
6
Sessions
Load time (in seconds)
Bouncerate(%)
Sessions Bounce rate
13%
bounce
rate
20%
bounce
rate
58%
bounce
rate
Progressive web apps with polymer
Are we there yet?
Progressive web apps with polymer
Progressive web apps with polymer
Progressive web apps with polymer
Progressive web apps with polymer
Progressive web apps with polymer
"Becoming a more frequent request.
We should do it."
https://trac.webkit.org/wiki/FiveYearPlanFall2015
Progressive web apps with polymer
Progressive web apps with polymer
Progressive web apps with polymer
...
Progressive web apps with polymer
Progressive web apps with polymer
1. Application shell
Progressive web apps with polymer
Speed tip: don't block the initial
render
Progressive web apps with polymer
Progressive web apps with polymer
Vulcanize all the things
Progressive web apps with polymer
Progressive web apps with polymer
2. Setting up caching
Progressive web apps with polymer
Progressive web apps with polymer
Created by gulpfile
cache-config.json
index.html
Caching strategies
networkFirst – check network first, fall back on cache
fastest – hit both network and cache at the same time, return faster
networkOnly – bypass cache
Progressive web apps with polymer
2. Data sync
Service Worker?
Progressive web apps with polymer
Progressive web apps with polymer
Progressive web apps with polymer
4. Push notifications
Progressive web apps with polymer
https://github.com/notwaldorf/caturday-post
https://github.com/vaadin/expense-manager-demo
Finally: a few tips
chrome://flags/#bypass-app-banner-engagement-checks
chrome://inspect
Progressive web apps with polymer
Progressive web apps with polymer
Resources
Poylmer Starter Kit

developers.google.com/web/tools/polymer-starter-kit
Polymer Slack 

polymer-slack.herokuapp.com
Getting Started With Progressive Web Apps tutorial

addyosmani.com/blog/getting-started-with-progressive-web-apps
SW Toolbox 

github.com/GoogleChrome/sw-toolbox
Questions?
thanks!
marcus@vaadin.com
@marcushellberg
ſ @marcus

More Related Content

PDF
Building for Your Next Billion - Google I/O 2017
PDF
The web - What it has, what it lacks and where it must go - keynote at Riga D...
PDF
Introduction to Progressive Web Apps, Google Developer Summit, Seoul - South ...
PDF
Progressive Web Apps and the Windows Ecosystem [Build 2017]
PDF
The Case for Progressive Web Apps
PDF
Offline-First Progressive Web Apps
PDF
Predictability for the Web
PDF
The Future of the Web - Cold Front conference 2016
Building for Your Next Billion - Google I/O 2017
The web - What it has, what it lacks and where it must go - keynote at Riga D...
Introduction to Progressive Web Apps, Google Developer Summit, Seoul - South ...
Progressive Web Apps and the Windows Ecosystem [Build 2017]
The Case for Progressive Web Apps
Offline-First Progressive Web Apps
Predictability for the Web
The Future of the Web - Cold Front conference 2016

What's hot (20)

PDF
The web - What it has, what it lacks and where it must go - Bulgaria Web Summ...
PPTX
Basic Understanding of Progressive Web Apps
PDF
Progressive Web App Challenges
PDF
The Future of Progressive Web Apps - Google for Indonesia
PDF
The Future of Progressive Web Apps - View Source conference, Berlin 2016
PDF
Progressive Web Apps keynote, Google Developer Summit, Tokyo, Japan
PDF
Bruce Lawson: Progressive Web Apps: the future of Apps
PPTX
Progressive Web Apps for Education
PDF
Planning Your Progressive Web App
PDF
AMP - Accelerated Mobile Pages
PDF
WordPress & Front-end performance
PDF
Breaking out of the Tetris mind set #btconf
PPTX
Progressive Web Applications - The Next Gen Web Technologies
PDF
Amp Overview #YGLF 2016
PDF
Web Forms The Right Way
PDF
Fast Fashion… How Missguided revolutionised their approach to site performanc...
PDF
Future of Mobile Web - Coldfront conf
PDF
AMP and PWA
PDF
Codemotion Progressive Web Applications Pwa Webinar - Jorge Ferreiro - @jgfer...
PDF
AMPed SEO with Mike Arnesen & SEMpdx
The web - What it has, what it lacks and where it must go - Bulgaria Web Summ...
Basic Understanding of Progressive Web Apps
Progressive Web App Challenges
The Future of Progressive Web Apps - Google for Indonesia
The Future of Progressive Web Apps - View Source conference, Berlin 2016
Progressive Web Apps keynote, Google Developer Summit, Tokyo, Japan
Bruce Lawson: Progressive Web Apps: the future of Apps
Progressive Web Apps for Education
Planning Your Progressive Web App
AMP - Accelerated Mobile Pages
WordPress & Front-end performance
Breaking out of the Tetris mind set #btconf
Progressive Web Applications - The Next Gen Web Technologies
Amp Overview #YGLF 2016
Web Forms The Right Way
Fast Fashion… How Missguided revolutionised their approach to site performanc...
Future of Mobile Web - Coldfront conf
AMP and PWA
Codemotion Progressive Web Applications Pwa Webinar - Jorge Ferreiro - @jgfer...
AMPed SEO with Mike Arnesen & SEMpdx
Ad

Viewers also liked (20)

PDF
Booting up with polymer
PDF
Building web apps with Vaadin 8
PDF
Web Components for Java Developers
PDF
Conociendo Angular 2
PPTX
Polymer
PDF
Web apps con angular y material design
PPTX
PostCss
PDF
Framework-less Applications
PDF
Stappenplan blogger
PPTX
Progressive Web Apps [pt_BR]
PDF
Webpack & React Performance in 16+ Steps
PPTX
a pattern for PWA, PRPL
PDF
PRPL Pattern with Webpack and React
PDF
Anatomy of a Progressive Web App
PDF
Web 2.0 Patterns and Technologies - Web Technologies (1019888BNR)
PDF
Production optimization with React and Webpack
PPTX
Ed Batista, The Art of Self-Coaching @StanfordBiz, Class 6: Vulnerability
PDF
The Progressive Web and its New Challenges - Confoo Montréal 2017
PDF
Creating HTML Pages
PDF
The Soul in The Machine - Developing for Humans
Booting up with polymer
Building web apps with Vaadin 8
Web Components for Java Developers
Conociendo Angular 2
Polymer
Web apps con angular y material design
PostCss
Framework-less Applications
Stappenplan blogger
Progressive Web Apps [pt_BR]
Webpack & React Performance in 16+ Steps
a pattern for PWA, PRPL
PRPL Pattern with Webpack and React
Anatomy of a Progressive Web App
Web 2.0 Patterns and Technologies - Web Technologies (1019888BNR)
Production optimization with React and Webpack
Ed Batista, The Art of Self-Coaching @StanfordBiz, Class 6: Vulnerability
The Progressive Web and its New Challenges - Confoo Montréal 2017
Creating HTML Pages
The Soul in The Machine - Developing for Humans
Ad

Similar to Progressive web apps with polymer (20)

PDF
Why Progressive Web Apps will transform your website
PDF
Building a Progressive Web App
PDF
Progressive Web Apps For Startups
PDF
Go for Progressive Web Apps. Get a Better, Low Cost, Mobile Presence
PDF
Progressive Web Applications
PPTX
Progressive Web App
PDF
The Future of The Web Platform: Does It Have One?
PDF
From AMP to PWA
PDF
Building an Appier Web - London Web Standards - Nov 2016
PDF
Building an Appier Web - Velocity Amsterdam 2016
PDF
#MTC2019: Mobile (jeszcze bardziej) first! PWA jako wyzwanie UX - Filip Makow...
PDF
Focus sur les PWA par Loic de Saint-Andrieu de Google
PDF
Progressive Web Apps - Intro and State of Market in Australia
PDF
A year with progressive web apps! #DevConMU
PDF
Progressive Web Apps - Goto Chicago 2017
PDF
We Made Our Website a PWA & Why You Should Too - Brighton SEO
PDF
A year with progressive web apps! #webinale
PDF
Progressive Web Apps 1. keynote
PDF
pwas-the-future-of-the-mobile-web technology
PDF
Progressive Web Apps are here!
Why Progressive Web Apps will transform your website
Building a Progressive Web App
Progressive Web Apps For Startups
Go for Progressive Web Apps. Get a Better, Low Cost, Mobile Presence
Progressive Web Applications
Progressive Web App
The Future of The Web Platform: Does It Have One?
From AMP to PWA
Building an Appier Web - London Web Standards - Nov 2016
Building an Appier Web - Velocity Amsterdam 2016
#MTC2019: Mobile (jeszcze bardziej) first! PWA jako wyzwanie UX - Filip Makow...
Focus sur les PWA par Loic de Saint-Andrieu de Google
Progressive Web Apps - Intro and State of Market in Australia
A year with progressive web apps! #DevConMU
Progressive Web Apps - Goto Chicago 2017
We Made Our Website a PWA & Why You Should Too - Brighton SEO
A year with progressive web apps! #webinale
Progressive Web Apps 1. keynote
pwas-the-future-of-the-mobile-web technology
Progressive Web Apps are here!

More from Marcus Hellberg (10)

PDF
Building performant web apps
PDF
Building web apps with vaadin 10
PDF
Going web native - Feb 2018
PDF
Going web native
PDF
What's new in Vaadin 8, how do you upgrade, and what's next?
PDF
Going web native
PDF
Demystifying progressive web apps
PDF
Building web apps with vaadin 8
PDF
Booting up with polymer
PDF
Vaadin NYC Meetup
Building performant web apps
Building web apps with vaadin 10
Going web native - Feb 2018
Going web native
What's new in Vaadin 8, how do you upgrade, and what's next?
Going web native
Demystifying progressive web apps
Building web apps with vaadin 8
Booting up with polymer
Vaadin NYC Meetup

Recently uploaded (20)

DOCX
Modern SharePoint Intranet Templates That Boost Employee Engagement in 2025.docx
PDF
CCleaner 6.39.11548 Crack 2025 License Key
PDF
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
PPTX
Oracle Fusion HCM Cloud Demo for Beginners
PPTX
GSA Content Generator Crack (2025 Latest)
PPTX
Computer Software - Technology and Livelihood Education
PPTX
assetexplorer- product-overview - presentation
PPTX
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
PDF
EaseUS PDF Editor Pro 6.2.0.2 Crack with License Key 2025
PPTX
Computer Software and OS of computer science of grade 11.pptx
PPTX
Cybersecurity: Protecting the Digital World
PDF
Topaz Photo AI Crack New Download (Latest 2025)
PDF
Multiverse AI Review 2025: Access All TOP AI Model-Versions!
PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PDF
Designing Intelligence for the Shop Floor.pdf
PPTX
Weekly report ppt - harsh dattuprasad patel.pptx
PDF
The Dynamic Duo Transforming Financial Accounting Systems Through Modern Expe...
PDF
Top 10 Software Development Trends to Watch in 2025 🚀.pdf
PDF
Types of Token_ From Utility to Security.pdf
PPTX
CNN LeNet5 Architecture: Neural Networks
Modern SharePoint Intranet Templates That Boost Employee Engagement in 2025.docx
CCleaner 6.39.11548 Crack 2025 License Key
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
Oracle Fusion HCM Cloud Demo for Beginners
GSA Content Generator Crack (2025 Latest)
Computer Software - Technology and Livelihood Education
assetexplorer- product-overview - presentation
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
EaseUS PDF Editor Pro 6.2.0.2 Crack with License Key 2025
Computer Software and OS of computer science of grade 11.pptx
Cybersecurity: Protecting the Digital World
Topaz Photo AI Crack New Download (Latest 2025)
Multiverse AI Review 2025: Access All TOP AI Model-Versions!
Why Generative AI is the Future of Content, Code & Creativity?
Designing Intelligence for the Shop Floor.pdf
Weekly report ppt - harsh dattuprasad patel.pptx
The Dynamic Duo Transforming Financial Accounting Systems Through Modern Expe...
Top 10 Software Development Trends to Watch in 2025 🚀.pdf
Types of Token_ From Utility to Security.pdf
CNN LeNet5 Architecture: Neural Networks

Progressive web apps with polymer