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
今こそ知るべき耐量子計算機暗号(PQC)入門 / PQC: What You Need to Know Now
mackey0225
3
370
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
450
高速開発のためのコード整理術
sutetotanuki
1
400
Architectural Extensions
denyspoltorak
0
280
CSC307 Lecture 03
javiergs
PRO
1
490
開発者から情シスまで - 多様なユーザー層に届けるAPI提供戦略 / Postman API Night Okinawa 2026 Winter
tasshi
0
200
AtCoder Conference 2025
shindannin
0
1.1k
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
260
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
430
CSC307 Lecture 05
javiergs
PRO
0
500
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
180
CSC307 Lecture 09
javiergs
PRO
1
830
Featured
See All Featured
The SEO identity crisis: Don't let AI make you average
varn
0
88
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
1
99
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
280
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
98
How GitHub (no longer) Works
holman
316
140k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
310
How Software Deployment tools have changed in the past 20 years
geshan
0
32k
Building the Perfect Custom Keyboard
takai
2
680
Leo the Paperboy
mayatellez
4
1.4k
Docker and Python
trallard
47
3.7k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
0
3.4k
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