11. Lets look at the pro’s
Native
• Better Performance
• Hardware access
• Offline support
• Re-engangement w. Push
Web
• Only one platform
• No gate-keepers
• Fast/easy deploy/update
• the link…
14. Native
• Better Performance
• Hardware access
• Offline support
• Re-engangement w. Push
Web
• Only one platform
• No gate-keepers
• Fast/easy deploy/update
• the link…
No
longer native
only
Lets look at the pro’s
24. So what is a ServiceWorker
• its a javascript worker
• one pr. host (shared)
• lives beyond the session
• gives you a persistent programmable cache
• based on events and promises
25. How do I use it
• Register with a scope
• Listen and intercept events
• network-events
• push
• sync
47. PaymentRequest
• Receive checkout info from the user
• Possible PCI-need
• Available in Chrome and Edge today (Firefox behind flag,
positive feedback from Apple)
• Similar integration in Safari with ApplePay
• My first impressions
https://developers.google.com/web/updates/2016/07/payment-request
53. Credential Manangement API
• Store (and sync) credentials in the browser
• Use the browsers account-chooser
• automatic sign-in (no forever living cookies)
https://developers.google.com/web/updates/2016/04/credential-management-api
58. 4 specs really
• Custom elements
• HTML templates
• Shadow DOM
• HTML imports (but forget about this one… :-/)
https://developers.google.com/web/fundamentals/getting-started/primers/shadowdom
https://developers.google.com/web/fundamentals/getting-started/primers/customelements
72. its basically worklets,
typed CSSOM and
custom display
Sam Richard: https://www.youtube.com/watch?v=r-Hc3hN9e6I
Surma: https://www.youtube.com/watch?v=sE3ttkP15f8
73.
74. this api has changed a little - its actually attributeStyleMap now
88. WebAssembly
binary execution in the browser for performance and portability
https://developer.mozilla.org/en-US/docs/WebAssembly
89. binary (small download) +
fast (real memory access)
think Photoshop, Final Cut Pro, 3D studio max, (games
obviously)… in the browser
http://webassembly.org/demo/Tanks/
https://www.youtube.com/watch?v=PvZdTZ1Nl5o
90. don’t think of it as a new language
it’s (first and foremost) a compiler target (from C, C++, …), that will give
you speed
hint: you can use for just parts of a PWA
https://hacks.mozilla.org/2017/03/why-webassembly-is-faster-than-asm-js/