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
Web Components入門 #gotandajs
Search
tiwu
May 10, 2019
Technology
440
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Web Components入門 #gotandajs
https://gotandajs.connpass.com/event/127779/
Gotanda.js #11 in MobileFactory
で発表した資料です
tiwu
May 10, 2019
More Decks by tiwu
See All by tiwu
Eleventy で SSG
tiwu_dev
2
720
Eleventy - 11ty
tiwu_dev
0
150
Install for PWA
tiwu_dev
0
3.4k
App Shortcuts
tiwu_dev
0
950
Web Vitals
tiwu_dev
0
88
Web Share API
tiwu_dev
0
3.4k
Badge in Background
tiwu_dev
0
110
PWAとCache API #frontkansai
tiwu_dev
5
4.2k
Web Componentsとlit-element #frontkansai
tiwu_dev
2
3.5k
Other Decks in Technology
See All in Technology
全員がプロダクトへ向き合う組織を持続成長させるために——組織づくりのフライホイールと4象限 / The Flywheel Model and Four Quadrants for Organizational Design
hiro_torii
4
940
[DroidKaigi 2026] Making UI specifications visible: Android UI development in the AI agent era supported by Compose Screenshot Testing and galleries
syarihu
0
610
AIで実装は速くなった。なのにプロダクトは速くならない。職能の壁を越えて価値のフローを設計する
nwiizo
7
7.6k
2026-09-10 【Snowflake World Tour Tokyo 2026】dbt Core と Snowflake で実現する多層的なデータガバナンス / Multi-Layered Data Governance Powered by dbt Core and Snowflake
civitaspo
0
270
AIオーケストレーションを活用した 開発ワークフローの設計と実践
bqnq
0
120
HRC_Frontend_Conference_Fukuoka_2026.pdf
ts020
0
160
20260912_スクフェス三河
kgnkhkr
0
160
例外の正しい扱い方 そのエラー try-catchして大丈夫?
jinwatanabe
3
420
アプリをもっと"iOSアプリっぽく"する小さな工夫 / Small Touches That Make Your App Feel More Like an iOS App
matsuji
0
130
Screen Lens - 今見てる画面を翻訳する
komagata
0
190
synctest時代のhttptest Go 1.27で変わるHTTPサーバテストの裏側 / go conference2026 synctest and httptest
budougumi0617
1
630
2026-09-09 【sigma_ucj#1】Sigma を IaC 管理したい! / IaC for Sigma
civitaspo
0
100
Featured
See All Featured
For a Future-Friendly Web
brad_frost
183
10k
Thoughts on Productivity
jonyablonski
76
5.4k
A Modern Web Designer's Workflow
chriscoyier
698
190k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.8k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
Claude Code のすすめ
schroneko
67
230k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
Un-Boring Meetings
codingconduct
0
410
Balancing Empowerment & Direction
lara
6
1.3k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Speed Design
sergeychernyshev
33
2.1k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.3k
Transcript
Web Components入門 Wataru Taguchi
アジェンダ - 自己紹介 - Web Componentsとは - 例 - メリット
- カスタム要素 - Shadow DOM - 作り方・使い方 - 事例 - まとめ
自己紹介 # Wataru Taguchi - GameWith Front End Engineer -
PWAとかWeb Componentsとかパフォーマンス チューニングが好き - @tiwu_official - FF14, Beer, Kyoto Animation
Web Componentsとは Vanilla JS、HTML、CSS を使用して 再利用可能なコンポーネントを作成する仕組み
例 https://informal-gotanda-js-web-components.netlify.com/
例
例
- ライブラリに依存せずコンポーネントを作成できる - どんなサイトでも動く - Scoped CSSが書ける - 命名ルール地獄からの解放 -
DOMを隠す - document.querySelectorで取得できない メリット
- カスタム要素 - 新しくHTMLタグを作成する - Shadow DOM - DOMを隠すことができる Web
Componentsを構成する技術
- customElements.define() - 新しいタグを定義することができる - 新しいタグは必ずダッシュ(-)が必要 - 例:◦hoge-button × hogebutton カスタム要素
- attachShadow() - Shadow DOMを取得できる - innerHTMLやappendChildを利用して追加ができる Shadow DOM
None
None
- https://www.youtube.com/ - https://voice.ameba.jp/ - https://support.pairs.lv/hc/ja/ - https://www.ikyu.com/kankou/kyoto/ - AMPのコンポーネントはWeb
Componets 事例
- ライブラリに依存せずコンポーネントが作れる - Scoped CSSが書ける - カスタム要素とShadow DOM - 静的なコンポーネントなら簡単に作れる
- 結構大手のサイトで使われている まとめ
Q : 対応ブラウザは? A : Edge以外大丈夫 Q&A
Q : Edgeどうすれば・・? A : Chromiumベースになるから大丈夫だろう・・・ Q&A
Q : クライアントサイドでレンダリングされるということは SEOが・・・ A : Google I/Oで最新Chromiumレンダリングエンジンを サポートすることが発表されたから大丈夫 Q&A
ご清聴ありがとうございました