Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Web Components: The Future of Web Applications
Search
Ire Aderinokun
June 17, 2017
Programming
6
1.6k
Web Components: The Future of Web Applications
Talk at Google I/O Extended Lagos
Ire Aderinokun
June 17, 2017
Tweet
Share
More Decks by Ire Aderinokun
See All by Ire Aderinokun
Web Accessibility: It Doesn't Have to Be Hard
ireade
4
1.1k
Becoming a GDE & Overcoming Stage Fright
ireade
4
450
What about CSS? Progressive Enhancement & CSS (Updated)
ireade
4
450
Building "The Loop" (Introduction to Frontend Development)
ireade
3
270
Demystifying Angular Universal
ireade
5
540
Introduction to UI/UX Design
ireade
9
630
Building Modern Progressive Web Apps
ireade
7
1.6k
What about CSS? Progressive Enhancement & CSS
ireade
9
4.3k
Hosting with Firebase
ireade
3
780
Other Decks in Programming
See All in Programming
良いコードレビューとは
danimal141
10
10k
気がついたら子供が社会人になって 自分と同じモバイルアプリエンジニアになった件 / Parent-Child Engineers
koishi
0
210
Scala 3 で GLSL のための c-like-for を実装してみた
exoego
1
140
SREチームのタスク優先度と向き合う Road to SRE NEXT@札幌
nealle
0
120
変化の激しい時代における、こだわりのないエンジニアの強さ
satoshi256kbyte
1
1k
The Price of Micro Frontends… and Your Alternatives @bastacon 2025 in Frankfurt
manfredsteyer
PRO
0
390
❄️ NixOS/nixpkgsにSATySFiサポートを実装する
momeemt
1
120
生産性アップのためのAI個人活用
kunoyasu
0
430
Compose Navigation実装の見通しを良くする
hiroaki404
0
110
⚪⚪の⚪⚪をSwiftUIで再現す る
u503
0
160
신입 안드로이드 개발자의 AI 스타트업 생존기 (+ Native C++ Code를 Android에서 사용해보기)
dygames
0
430
15分で学ぶDuckDBの可愛い使い方 DuckDBの最近の更新
notrogue
3
920
Featured
See All Featured
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
49k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
176
52k
Mobile First: as difficult as doing things right
swwweet
223
9.5k
The Cult of Friendly URLs
andyhume
78
6.3k
Scaling GitHub
holman
459
140k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
4
420
Designing on Purpose - Digital PM Summit 2013
jponch
117
7.2k
Large-scale JavaScript Application Architecture
addyosmani
511
110k
Code Reviewing Like a Champion
maltzj
521
39k
How GitHub (no longer) Works
holman
314
140k
Optimizing for Happiness
mojombo
377
70k
Transcript
Web Components: The Future of Web Applications Ire Aderinokun I/O
Extended Lagos
Hello! • Ire Aderinokun • Frontend Developer and User Interface
Designer • Google Expert in Web Technologies • Writer, bitsofco.de • Software Developer at eyeo
Building Applications on the Web is Hard
None
Android <android.support.design.widget. BottomNavigationView />
iOS UITabBar UITabBarController
Web
This is because the Web is an open platform
Building Blocks of the Web
Early Websites
Websites Today
But Web Technologies are getting better
The Solution is Web Components!
Web Components are a set of new web platform features
that let you create your own HTML elements
<bottom-navigation> <floating-action-button> <ire-aderinokun> <caniuse-embed> <inlinetweetjs> <meme-generator> <inlinetweetjs> <bitsofcode>
Encapsulated & Reusable
1B+ mobile devices natively support Web Components, right now!
None
What is the Polymer Project?
– The Polymer Team “Our mission is to make life
better for users and developers, by helping developers unlock the web platform’s full potential and by spurring the web platform to evolve and improve.”
The Polymer Project is a look into the future of
web development
None
1. Polymer Library
The Polymer Library is a Javascript Library that helps you
create custom reusable HTML elements, and use them to build performant, maintainable apps
Why use the Polymer Library?
Polymer 2.0 ! Improved Interoperability Data System Improvements Uses Native
APIs Polymer CLI
2. Elements
None
None
None
None
3. PRPL
None
4. App Toolbox
Polymer App Toolbox is a collection of components, tools and
templates for building Progressive Web Apps with Polymer
Features • Component-based architecture using Polymer • Routing using the
<app-route> elements • Offline caching using Service Workers • Build tooling to support delivery over HTTP/1 or HTTP/2
5. Tooling
Polymer CLI
Commands • polymer init • polymer serve • polymer lint
• polymer test • polymer build • polymer analyze
polymer init
What can you actually do with Web Components?
<caniuse-embed>
None
cheese.polymer-project.org
None
None
How do Web Components work?
4 Key Web Technologies HTML Imports Shadow DOM HTML Templates
Custom Elements
Custom Elements • An API for creating your own HTML
elements by creating a Class that extends from HTMLElement • customElements.define()
HTML Templates • A mechanism for defining content that can
be stored for subsequent use in a document • <template></template>
Shadow DOM • A mechanism for encapsulating a DOM and
CSS, so that they can remain separate from the main document • document.body.attachShadow()
HTML Imports • A way to package and share HTML
files • <link rel=“import” href=“component.html”>
None
None
A Simple Native Web Component
None
Custom Elements API
Base HTMLElement Class
Shadow DOM
Content
None
None
How do Polymer Components Work?
None
Import Polymer Library
Custom Elements API
HTML Template
Data Binding
None
Let’s Build a Web Component!
<meme-maker>
Join In! 1. Install Polymer CLI • npm install -g
polymer-cli 2. Create project directory • mkdir meme-maker && cd meme-maker 3. Create a new Polymer project • polymer init 4. or Clone the final repository • bit.ly/meme-maker-polymer
Diving Deeper
www.Polymer-Project.org
None
None
Thank you! Any Questions?