Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
The Web is a Contender
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Surma
September 25, 2015
Technology
180
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
The Web is a Contender
JSConf EU 2015
Surma
September 25, 2015
Transcript
34 slides
The Web is a Contender q mobile
Surma @surmair
voice-memos.appspot.com
1B+ Users (25M+ Devs)
None
“Reach”
100+ websites per month
“The mobile war is oveR. . .” “the app has
Won” goo.gl/nLFRmY
“The is oveR. . .” “the goo.gl/nLFRmY ಠ_ಠ
Web Native spent on… 80% 20% goo.gl/nLFRmY
Web Native spent on… 22% 20% totally not important stuff
goo.gl/nLFRmY
Web Native spent on… 52% 48% goo.gl/nLFRmY
“Native apps can’t out-web the web” goo.gl/15sYYY
goo.gl/15sYYY
airhorner.com
airhorner.com
{ "name": "Air Horner", "short_name": "Air Horner", "icons": [{ "src":
"images/touch/Airhorner_128.png", "type": "image/png", "sizes": "128x128" },{ "src": "images/touch/Airhorner_192.png", "type": "image/png", "sizes": "192x192" }], "start_url": "/?homescreen=1", "display": "standalone", "background_color": "#2196F3", "theme_color": "#2196F3" }
Service Worker
goo.gl/IpsiH1
if ('serviceWorker' in navigator) { navigator.serviceWorker .register('/sw.js') .then(function(registration) { //
successful }).catch(function(err) { // failure }); }
Service Worker
var items = [ '/', '/styles/main.css', '/script/main.js' ]; self.addEventListener('install', function(event)
{ event.waitUntil( caches.open(CACHE_NAME) .then(function(cache) { return cache.addAll(items); }) ); });
self.addEventListener('fetch', function(event) { event.respondWith( caches .match(event.request) .then(function(response) { return response
|| fetch(event.request); })); });
wiki-offline.jakearchibald.com
wiki-offline.jakearchibald.com
sw-toolbox github.com/GoogleChrome/sw-toolbox
Service Worker
Push Notifications
navigator.serviceWorker.ready.then( function(sw) { sw.pushManager.subscribe() .then(function(subscription) { // Send subscription.endpoint //
to server }); }); }
self.addEventListener('push', function(event) { var n = new Notification('A Message!’); //
... }); self.addEventListener('notificationclick', function(event) { var url = event.notification.data.url; event.waitUntil(clients.openWindow(url)); });
simple-push-demo.appspot.com
None
HTTPS everywhere letsencrypt.com
Surma @surmair Thank you!
More Decks by Surma
See All by Surma
Know thy buzzwords: HTTP/2
surma
1
600
Houdini Breakout Session
surma
4
730
Houdini – Demystifying CSS
surma
3
360
Progressive Web Apps – Mobile has natively come to the Web
surma
5
340
The Glorious Era of HTTP/2
surma
1
150
Instant Loading
surma
4
1.4k
HTTP/2 101
surma
5
550
What if there isn’t?
surma
0
130
What if there isn’t?
surma
2
230
Other Decks in Technology
See All in Technology
速くなるほど、深く考える AI時代のQAに学ぶ
kobayashiyorimitsu
0
260
Kansai WordPress Meetup@大阪『ブロックテーマを作る上で知っておくべきこと
torounit
0
230
CloudTrail を推したい
kazzpapa3
1
130
AWS基盤改善を支える 私たちの理念と行動指針
kentosuzuki
0
240
並列度を下げたら速くなった — go build の重複コンパイルを実測で見る
tomoaki25
2
1.3k
サーバーラックは作る時代! 3Dプリンターで作る10インチラックのススメ
jacopen
2
440
自動計装なしでECSサービスをApplication Signalsに載せるまで
ota1022
2
300
Where Should Platform Complexity Live? Lessons from a Cross-Team PR Preview Platform
taiki45
0
140
小さなエージェントから始めてみよう!実践コンテキストエンジニアリング
iwamot
PRO
0
130
SSFの現在地 ― CAEP/RISCからAI Identityへ
oidfj
0
470
アラートを見直していたら営業組織への理解にちょっとだけ繋がった話
z63d
1
210
あの日、見つかっていなかったらどうなっていたか
kazzpapa3
2
250
Featured
See All Featured
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Build your cross-platform service in a week with App Engine
jlugia
234
19k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
980
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
810
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.6k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
770
Speed Design
sergeychernyshev
33
2.2k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.2k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.9k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
Heart Work Chapter 1 - Part 1
lfama
PRO
11
37k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k