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
Lightweight custom elements
Search
Mathias Eckert
October 24, 2016
Programming
0
56
Lightweight custom elements
You can find the live example here:
http://codepen.io/meckert/pen/kkVOWJ?editors=1000#0
Mathias Eckert
October 24, 2016
Tweet
Share
Other Decks in Programming
See All in Programming
OCaml 5でモダンな並列プログラミングを Enjoyしよう!
haochenx
0
140
AI時代の認知負荷との向き合い方
optfit
0
150
高速開発のためのコード整理術
sutetotanuki
1
390
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
150
20260127_試行錯誤の結晶を1冊に。著者が解説 先輩データサイエンティストからの指南書 / author's_commentary_ds_instructions_guide
nash_efp
1
940
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
420
Oxlint JS plugins
kazupon
1
830
Honoを使ったリモートMCPサーバでAIツールとの連携を加速させる!
tosuri13
1
170
Amazon Bedrockを活用したRAGの品質管理パイプライン構築
tosuri13
4
260
AIエージェント、”どう作るか”で差は出るか? / AI Agents: Does the "How" Make a Difference?
rkaga
4
2k
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
180
Grafana:建立系統全知視角的捷徑
blueswen
0
330
Featured
See All Featured
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
240
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.3k
First, design no harm
axbom
PRO
2
1.1k
SEO for Brand Visibility & Recognition
aleyda
0
4.2k
Designing for Performance
lara
610
70k
Raft: Consensus for Rubyists
vanstee
141
7.3k
Deep Space Network (abreviated)
tonyrice
0
47
Are puppies a ranking factor?
jonoalderson
1
2.7k
Test your architecture with Archunit
thirion
1
2.1k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
200
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.2k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
110
Transcript
@themeckert
None
Custom Elements </>
None
Web Components Templates Shadow DOM HTML imports Custom Elements
<custom-element attribute="value"></custom-element>
<smashing-conf rocks="true"></smashing-conf>
http://giphy.com/gifs/animation-circle-of-life-3o7TKC28zKmmSvfWZq Lifecycle
Lifecycle of Custom Elements Created Attached to DOM Attribute changed
Removed from DOM
Code example (v1 syntax)
Style custom elements
Properties of custom elements - They have a lifecycle -
They can have their own scripted behaviour - They can have their own CSS styling
How do custom elements help us at AutoScout24?
We can provide a library of custom elements to other
developers without them having to write a single line of JavaScript code.
Icons
Icons
Tracking
Ads
Notifications
Ajax
Browser support?
v0
v1
None
document register element https://github.com/WebReflection/document-register-element
document register element - Very small polyfill (~5KB min+gzip) -
Support for IE8, iOS 5.1, Android 2.2
None
custom elements in action
@themeckert