SlideShare une entreprise Scribd logo
1  sur  23
Télécharger pour lire hors ligne
VanillaJS et la Web Platform,
le couple de l'année?
Bertrand Delacrétaz
Principal Scientist, Adobe
Member of the Board of Directors,
Apache Software Foundation
Very Tech Trip, Paris, Février 2023
Photos are from Adobe Stock unless indicated otherwise
slides version 2023-02-01b
Web Platform?
VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023
The Web Platform
https://www.ecma-international.org/publications-and-standards/standards/ecma-262/
https://www.w3.org/Style/CSS/specs.en.html
https://html.spec.whatwg.org/
https://developer.mozilla.org/en-US/
CURIA VISTA - 1999
www.parlament.ch
VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023
The Web Platform : the Evergreen Web
https://www.w3.org/2001/tag/doc/evergreen-web/
Constant evolution is fundamental to the web's usefulness
Browsers are a part of the web and therefore they must be continually updated.
VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023
The Web Platform : resources
Mozilla Developer Network (MDN)
https://developer.mozilla.org/en-US/
web.dev
brought to you by the Google Chrome DevRel team
https://web.dev/
web-platform-tests.org
cross-browser test suite for the Web Platform stack
caniuse.com
Browser support tables for modern web technologies
Vanilla JS ?
VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023
Vanilla JS ?
+ Web API
https://developer.mozilla.org/en-US/docs/Web/API
VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023
JavaScript Frameworks: why?
components
examples
best practices
tools
developers
events
training
documentation
well-known
modern
portable
conferences
No more Web Frameworks?
VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023
Web Platform, Web Components?
components
examples
best practices
tools
developers
events
training
documentation
well-known
modern
portable
conferences
The Web Platform and Web Components provide all 99% 93.42% of this!
long-lived learning
standards
Web Components
VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023
Web Components ?
MDN says:
Web Components is a suite of
different technologies allowing you
to create reusable custom
elements — with their functionality
encapsulated away from the rest of
your code — and utilize them in
your web apps.
https://developer.mozilla.org/en-US/docs/Web/Web_Components
custom elements
shadow dom
HTML templates
encapsulated JavaScript & CSS
progressive enhancement
custom events
polyfills
VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023
Web Components : who ?
https://github.blog/2021-05-04-how-we-use-web-components-at-github/
https://vitemadose.covidtracker.fr/
https://opensource.adobe.com/spectrum-web-components/
VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023
Web Components : example
no JavaScript:
VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023
Web Components : list
custom element names
console.log(
[...new Set([].map.call(
document.querySelectorAll('*'),
el => el.nodeName.toLowerCase()))
].filter(
customElements
.get.bind(customElements)
)
)
TodoMVC
Using Web Components
VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023
TodoMVC using Web Components
https://github.com/adobe/web-platform-zoo
https://opensource.adobe.com/web-platform-zoo/examples/web-components/todomvc/
VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023
TodoMVC:
todo-list component
Usage:
Testing
VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023
End-to-end testing: Playwright ?
https://playwright.dev/
Cross-browser, cross-platform, cross-language
VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023
Testing the TodoMVC
Web Components
Playwright test report:
Coda
VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023
@bdelacretaz
https://fosstodon.org/@bdelacretaz
https://grep.codeconsult.ch/
Web Components
modern and forward-looking
the Web Platform is back!
Evergreen Web
modern css
modern html
modern JavaScript
https://blog.developer.adobe.com/the-web-platform-is-back-fa5752fabdfc
long-lived learning
standards

Contenu connexe

Similaire à VanillaJS & the Web Platform, a match made in heaven?

Report file on Web technology(html5 and css3)
Report file on Web technology(html5 and css3)Report file on Web technology(html5 and css3)
Report file on Web technology(html5 and css3)
PCG Solution
 
Client Side Frameworks
Client Side FrameworksClient Side Frameworks
Client Side Frameworks
Mitesh Gandhi
 
Tech 2 - Introduction to the Code
Tech 2 - Introduction to the CodeTech 2 - Introduction to the Code
Tech 2 - Introduction to the Code
AidIQ
 

Similaire à VanillaJS & the Web Platform, a match made in heaven? (20)

Morden F2E Education - Think of Progressive Web Apps
Morden F2E Education - Think of Progressive Web AppsMorden F2E Education - Think of Progressive Web Apps
Morden F2E Education - Think of Progressive Web Apps
 
Android app development Hybrid approach for beginners
Android app development  Hybrid approach for beginnersAndroid app development  Hybrid approach for beginners
Android app development Hybrid approach for beginners
 
Report file on Web technology(html5 and css3)
Report file on Web technology(html5 and css3)Report file on Web technology(html5 and css3)
Report file on Web technology(html5 and css3)
 
Html5 Overview
Html5 OverviewHtml5 Overview
Html5 Overview
 
www.webre24h.com - An ajax tool for online modeling
www.webre24h.com - An ajax tool for online modelingwww.webre24h.com - An ajax tool for online modeling
www.webre24h.com - An ajax tool for online modeling
 
DevDay 2018: Ulrich Deiters - Offline First - kein Netz, kein Fehler, zufried...
DevDay 2018: Ulrich Deiters - Offline First - kein Netz, kein Fehler, zufried...DevDay 2018: Ulrich Deiters - Offline First - kein Netz, kein Fehler, zufried...
DevDay 2018: Ulrich Deiters - Offline First - kein Netz, kein Fehler, zufried...
 
Transforming the web into a real application platform
Transforming the web into a real application platformTransforming the web into a real application platform
Transforming the web into a real application platform
 
Micro-Frontends JSVidCon
Micro-Frontends JSVidConMicro-Frontends JSVidCon
Micro-Frontends JSVidCon
 
Why do JavaScript enthusiast think of Vue.js for building real-time web appli...
Why do JavaScript enthusiast think of Vue.js for building real-time web appli...Why do JavaScript enthusiast think of Vue.js for building real-time web appli...
Why do JavaScript enthusiast think of Vue.js for building real-time web appli...
 
Fronted development trends - past, present and the future
Fronted development trends - past, present and the futureFronted development trends - past, present and the future
Fronted development trends - past, present and the future
 
HTML5 & Renesas RZ/G
HTML5 & Renesas RZ/GHTML5 & Renesas RZ/G
HTML5 & Renesas RZ/G
 
3D and VR on the web
3D and VR on the web3D and VR on the web
3D and VR on the web
 
JavaScript Presentation Frameworks and Libraries
JavaScript Presentation Frameworks and LibrariesJavaScript Presentation Frameworks and Libraries
JavaScript Presentation Frameworks and Libraries
 
Link. wicket [santi caltabiano].txt blocco note
  Link. wicket [santi caltabiano].txt   blocco note  Link. wicket [santi caltabiano].txt   blocco note
Link. wicket [santi caltabiano].txt blocco note
 
Client Side Frameworks
Client Side FrameworksClient Side Frameworks
Client Side Frameworks
 
Change by HTML5
Change by HTML5Change by HTML5
Change by HTML5
 
Top 10 PWA Frameworks in 2020
Top 10 PWA Frameworks in 2020Top 10 PWA Frameworks in 2020
Top 10 PWA Frameworks in 2020
 
soft-shake.ch - Introduction to HTML5
soft-shake.ch - Introduction to HTML5soft-shake.ch - Introduction to HTML5
soft-shake.ch - Introduction to HTML5
 
Always on! ... or not?
Always on! ... or not?Always on! ... or not?
Always on! ... or not?
 
Tech 2 - Introduction to the Code
Tech 2 - Introduction to the CodeTech 2 - Introduction to the Code
Tech 2 - Introduction to the Code
 

Plus de Bertrand Delacretaz

Plus de Bertrand Delacretaz (20)

Surviving large online communities with conciseness and clarity
Surviving large online communities with conciseness and clarity Surviving large online communities with conciseness and clarity
Surviving large online communities with conciseness and clarity
 
Repoinit: a mini-language for content repository initialization
Repoinit: a mini-language for content repository initializationRepoinit: a mini-language for content repository initialization
Repoinit: a mini-language for content repository initialization
 
The Moving House Model, adhocracy and remote collaboration
The Moving House Model, adhocracy and remote collaborationThe Moving House Model, adhocracy and remote collaboration
The Moving House Model, adhocracy and remote collaboration
 
GraphQL in Apache Sling - but isn't it the opposite of REST?
GraphQL in Apache Sling - but isn't it the opposite of REST?GraphQL in Apache Sling - but isn't it the opposite of REST?
GraphQL in Apache Sling - but isn't it the opposite of REST?
 
Open Source Changes the World!
Open Source Changes the World!Open Source Changes the World!
Open Source Changes the World!
 
How to convince your left brain (or manager) to follow the Open Source path t...
How to convince your left brain (or manager) to follow the Open Source path t...How to convince your left brain (or manager) to follow the Open Source path t...
How to convince your left brain (or manager) to follow the Open Source path t...
 
L'Open Source change le Monde - BlendWebMix 2019
L'Open Source change le Monde - BlendWebMix 2019L'Open Source change le Monde - BlendWebMix 2019
L'Open Source change le Monde - BlendWebMix 2019
 
Shared Neurons - the Secret Sauce of Open Source communities?
Shared Neurons - the Secret Sauce of Open Source communities?Shared Neurons - the Secret Sauce of Open Source communities?
Shared Neurons - the Secret Sauce of Open Source communities?
 
Sling and Serverless, Best Friends Forever?
Sling and Serverless, Best Friends Forever?Sling and Serverless, Best Friends Forever?
Sling and Serverless, Best Friends Forever?
 
Serverless - introduction et perspectives concrètes
Serverless - introduction et perspectives concrètesServerless - introduction et perspectives concrètes
Serverless - introduction et perspectives concrètes
 
State of the Feather - ApacheCon North America 2018
State of the Feather - ApacheCon North America 2018State of the Feather - ApacheCon North America 2018
State of the Feather - ApacheCon North America 2018
 
Karate, the black belt of HTTP API testing?
Karate, the black belt of HTTP API testing?Karate, the black belt of HTTP API testing?
Karate, the black belt of HTTP API testing?
 
Open Source at Scale: the Apache Software Foundation (2018)
Open Source at Scale: the Apache Software Foundation (2018)Open Source at Scale: the Apache Software Foundation (2018)
Open Source at Scale: the Apache Software Foundation (2018)
 
They don't understand me! Tales from the multi-cultural trenches
They don't understand me! Tales from the multi-cultural trenchesThey don't understand me! Tales from the multi-cultural trenches
They don't understand me! Tales from the multi-cultural trenches
 
Prise de Décisions Asynchrone, Devoxx France 2018 (avec vidéo)
Prise de Décisions Asynchrone, Devoxx France 2018 (avec vidéo)Prise de Décisions Asynchrone, Devoxx France 2018 (avec vidéo)
Prise de Décisions Asynchrone, Devoxx France 2018 (avec vidéo)
 
Project and Community Services the Apache Way
Project and Community Services the Apache WayProject and Community Services the Apache Way
Project and Community Services the Apache Way
 
La Fondation Apache - keynote au Paris Open Source Summit 2017
La Fondation Apache - keynote au Paris Open Source Summit 2017La Fondation Apache - keynote au Paris Open Source Summit 2017
La Fondation Apache - keynote au Paris Open Source Summit 2017
 
Asynchronous Decision Making - FOSS Backstage 2017
Asynchronous Decision Making - FOSS Backstage 2017Asynchronous Decision Making - FOSS Backstage 2017
Asynchronous Decision Making - FOSS Backstage 2017
 
Building an Apache Sling Rendering Farm
Building an Apache Sling Rendering FarmBuilding an Apache Sling Rendering Farm
Building an Apache Sling Rendering Farm
 
Who needs meetings? Asynchronous Decision Making to the rescue
Who needs meetings? Asynchronous Decision Making to the rescueWho needs meetings? Asynchronous Decision Making to the rescue
Who needs meetings? Asynchronous Decision Making to the rescue
 

Dernier

一比一原版(Soton毕业证书)南安普顿大学毕业证原件一模一样
一比一原版(Soton毕业证书)南安普顿大学毕业证原件一模一样一比一原版(Soton毕业证书)南安普顿大学毕业证原件一模一样
一比一原版(Soton毕业证书)南安普顿大学毕业证原件一模一样
Fi
 
一比一定制(OSU毕业证书)美国俄亥俄州立大学毕业证学位证书
一比一定制(OSU毕业证书)美国俄亥俄州立大学毕业证学位证书一比一定制(OSU毕业证书)美国俄亥俄州立大学毕业证学位证书
一比一定制(OSU毕业证书)美国俄亥俄州立大学毕业证学位证书
rgdasda
 
Production 2024 sunderland culture final - Copy.pptx
Production 2024 sunderland culture final - Copy.pptxProduction 2024 sunderland culture final - Copy.pptx
Production 2024 sunderland culture final - Copy.pptx
ChloeMeadows1
 
一比一原版(Exon毕业证书)英国埃克塞特大学毕业证如何办理
一比一原版(Exon毕业证书)英国埃克塞特大学毕业证如何办理一比一原版(Exon毕业证书)英国埃克塞特大学毕业证如何办理
一比一原版(Exon毕业证书)英国埃克塞特大学毕业证如何办理
gfhdsfr
 
一比一定制波士顿学院毕业证学位证书
一比一定制波士顿学院毕业证学位证书一比一定制波士顿学院毕业证学位证书
一比一定制波士顿学院毕业证学位证书
A
 
一比一原版加拿大多伦多大学毕业证(UofT毕业证书)如何办理
一比一原版加拿大多伦多大学毕业证(UofT毕业证书)如何办理一比一原版加拿大多伦多大学毕业证(UofT毕业证书)如何办理
一比一原版加拿大多伦多大学毕业证(UofT毕业证书)如何办理
egfdgfd
 
一比一原版英国萨赛克斯大学毕业证如何办理
一比一原版英国萨赛克斯大学毕业证如何办理一比一原版英国萨赛克斯大学毕业证如何办理
一比一原版英国萨赛克斯大学毕业证如何办理
SDSA
 
一比一原版(Bath毕业证书)英国桑德兰大学毕业证如何办理
一比一原版(Bath毕业证书)英国桑德兰大学毕业证如何办理一比一原版(Bath毕业证书)英国桑德兰大学毕业证如何办理
一比一原版(Bath毕业证书)英国桑德兰大学毕业证如何办理
B
 
一比一原版(Princeton毕业证书)普林斯顿大学毕业证如何办理
一比一原版(Princeton毕业证书)普林斯顿大学毕业证如何办理一比一原版(Princeton毕业证书)普林斯顿大学毕业证如何办理
一比一原版(Princeton毕业证书)普林斯顿大学毕业证如何办理
C
 
原版定制(Management毕业证书)新加坡管理大学毕业证原件一模一样
原版定制(Management毕业证书)新加坡管理大学毕业证原件一模一样原版定制(Management毕业证书)新加坡管理大学毕业证原件一模一样
原版定制(Management毕业证书)新加坡管理大学毕业证原件一模一样
asdafd
 
一比一原版(PSU毕业证书)美国宾州州立大学毕业证如何办理
一比一原版(PSU毕业证书)美国宾州州立大学毕业证如何办理一比一原版(PSU毕业证书)美国宾州州立大学毕业证如何办理
一比一原版(PSU毕业证书)美国宾州州立大学毕业证如何办理
Fir
 
100^%)( POLOKWANE))(*((+27838792658))*))௹ )Abortion Pills for Sale in Sibasa,...
100^%)( POLOKWANE))(*((+27838792658))*))௹ )Abortion Pills for Sale in Sibasa,...100^%)( POLOKWANE))(*((+27838792658))*))௹ )Abortion Pills for Sale in Sibasa,...
100^%)( POLOKWANE))(*((+27838792658))*))௹ )Abortion Pills for Sale in Sibasa,...
musaddumba454
 
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkkaudience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
lolsDocherty
 

Dernier (20)

一比一原版(Soton毕业证书)南安普顿大学毕业证原件一模一样
一比一原版(Soton毕业证书)南安普顿大学毕业证原件一模一样一比一原版(Soton毕业证书)南安普顿大学毕业证原件一模一样
一比一原版(Soton毕业证书)南安普顿大学毕业证原件一模一样
 
Development Lifecycle.pptx for the secure development of apps
Development Lifecycle.pptx for the secure development of appsDevelopment Lifecycle.pptx for the secure development of apps
Development Lifecycle.pptx for the secure development of apps
 
一比一定制(OSU毕业证书)美国俄亥俄州立大学毕业证学位证书
一比一定制(OSU毕业证书)美国俄亥俄州立大学毕业证学位证书一比一定制(OSU毕业证书)美国俄亥俄州立大学毕业证学位证书
一比一定制(OSU毕业证书)美国俄亥俄州立大学毕业证学位证书
 
AI Generated 3D Models | AI 3D Model Generator
AI Generated 3D Models | AI 3D Model GeneratorAI Generated 3D Models | AI 3D Model Generator
AI Generated 3D Models | AI 3D Model Generator
 
Production 2024 sunderland culture final - Copy.pptx
Production 2024 sunderland culture final - Copy.pptxProduction 2024 sunderland culture final - Copy.pptx
Production 2024 sunderland culture final - Copy.pptx
 
一比一原版(Exon毕业证书)英国埃克塞特大学毕业证如何办理
一比一原版(Exon毕业证书)英国埃克塞特大学毕业证如何办理一比一原版(Exon毕业证书)英国埃克塞特大学毕业证如何办理
一比一原版(Exon毕业证书)英国埃克塞特大学毕业证如何办理
 
Premier Mobile App Development Agency in USA.pdf
Premier Mobile App Development Agency in USA.pdfPremier Mobile App Development Agency in USA.pdf
Premier Mobile App Development Agency in USA.pdf
 
一比一定制波士顿学院毕业证学位证书
一比一定制波士顿学院毕业证学位证书一比一定制波士顿学院毕业证学位证书
一比一定制波士顿学院毕业证学位证书
 
一比一原版加拿大多伦多大学毕业证(UofT毕业证书)如何办理
一比一原版加拿大多伦多大学毕业证(UofT毕业证书)如何办理一比一原版加拿大多伦多大学毕业证(UofT毕业证书)如何办理
一比一原版加拿大多伦多大学毕业证(UofT毕业证书)如何办理
 
一比一原版英国萨赛克斯大学毕业证如何办理
一比一原版英国萨赛克斯大学毕业证如何办理一比一原版英国萨赛克斯大学毕业证如何办理
一比一原版英国萨赛克斯大学毕业证如何办理
 
一比一原版(Bath毕业证书)英国桑德兰大学毕业证如何办理
一比一原版(Bath毕业证书)英国桑德兰大学毕业证如何办理一比一原版(Bath毕业证书)英国桑德兰大学毕业证如何办理
一比一原版(Bath毕业证书)英国桑德兰大学毕业证如何办理
 
一比一原版(Princeton毕业证书)普林斯顿大学毕业证如何办理
一比一原版(Princeton毕业证书)普林斯顿大学毕业证如何办理一比一原版(Princeton毕业证书)普林斯顿大学毕业证如何办理
一比一原版(Princeton毕业证书)普林斯顿大学毕业证如何办理
 
原版定制(Management毕业证书)新加坡管理大学毕业证原件一模一样
原版定制(Management毕业证书)新加坡管理大学毕业证原件一模一样原版定制(Management毕业证书)新加坡管理大学毕业证原件一模一样
原版定制(Management毕业证书)新加坡管理大学毕业证原件一模一样
 
TORTOGEL TELAH MENJADI SALAH SATU PLATFORM PERMAINAN PALING FAVORIT.
TORTOGEL TELAH MENJADI SALAH SATU PLATFORM PERMAINAN PALING FAVORIT.TORTOGEL TELAH MENJADI SALAH SATU PLATFORM PERMAINAN PALING FAVORIT.
TORTOGEL TELAH MENJADI SALAH SATU PLATFORM PERMAINAN PALING FAVORIT.
 
一比一原版(PSU毕业证书)美国宾州州立大学毕业证如何办理
一比一原版(PSU毕业证书)美国宾州州立大学毕业证如何办理一比一原版(PSU毕业证书)美国宾州州立大学毕业证如何办理
一比一原版(PSU毕业证书)美国宾州州立大学毕业证如何办理
 
The Rise of Subscription-Based Digital Services.pdf
The Rise of Subscription-Based Digital Services.pdfThe Rise of Subscription-Based Digital Services.pdf
The Rise of Subscription-Based Digital Services.pdf
 
I’ll See Y’All Motherfuckers In Game 7 Shirt
I’ll See Y’All Motherfuckers In Game 7 ShirtI’ll See Y’All Motherfuckers In Game 7 Shirt
I’ll See Y’All Motherfuckers In Game 7 Shirt
 
Registry Data Accuracy Improvements, presented by Chimi Dorji at SANOG 41 / I...
Registry Data Accuracy Improvements, presented by Chimi Dorji at SANOG 41 / I...Registry Data Accuracy Improvements, presented by Chimi Dorji at SANOG 41 / I...
Registry Data Accuracy Improvements, presented by Chimi Dorji at SANOG 41 / I...
 
100^%)( POLOKWANE))(*((+27838792658))*))௹ )Abortion Pills for Sale in Sibasa,...
100^%)( POLOKWANE))(*((+27838792658))*))௹ )Abortion Pills for Sale in Sibasa,...100^%)( POLOKWANE))(*((+27838792658))*))௹ )Abortion Pills for Sale in Sibasa,...
100^%)( POLOKWANE))(*((+27838792658))*))௹ )Abortion Pills for Sale in Sibasa,...
 
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkkaudience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
 

VanillaJS & the Web Platform, a match made in heaven?

  • 1. VanillaJS et la Web Platform, le couple de l'année? Bertrand Delacrétaz Principal Scientist, Adobe Member of the Board of Directors, Apache Software Foundation Very Tech Trip, Paris, Février 2023 Photos are from Adobe Stock unless indicated otherwise slides version 2023-02-01b
  • 3. VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023 The Web Platform https://www.ecma-international.org/publications-and-standards/standards/ecma-262/ https://www.w3.org/Style/CSS/specs.en.html https://html.spec.whatwg.org/ https://developer.mozilla.org/en-US/ CURIA VISTA - 1999 www.parlament.ch
  • 4. VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023 The Web Platform : the Evergreen Web https://www.w3.org/2001/tag/doc/evergreen-web/ Constant evolution is fundamental to the web's usefulness Browsers are a part of the web and therefore they must be continually updated.
  • 5. VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023 The Web Platform : resources Mozilla Developer Network (MDN) https://developer.mozilla.org/en-US/ web.dev brought to you by the Google Chrome DevRel team https://web.dev/ web-platform-tests.org cross-browser test suite for the Web Platform stack caniuse.com Browser support tables for modern web technologies
  • 7. VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023 Vanilla JS ? + Web API https://developer.mozilla.org/en-US/docs/Web/API
  • 8. VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023 JavaScript Frameworks: why? components examples best practices tools developers events training documentation well-known modern portable conferences
  • 9. No more Web Frameworks?
  • 10. VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023 Web Platform, Web Components? components examples best practices tools developers events training documentation well-known modern portable conferences The Web Platform and Web Components provide all 99% 93.42% of this! long-lived learning standards
  • 12. VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023 Web Components ? MDN says: Web Components is a suite of different technologies allowing you to create reusable custom elements — with their functionality encapsulated away from the rest of your code — and utilize them in your web apps. https://developer.mozilla.org/en-US/docs/Web/Web_Components custom elements shadow dom HTML templates encapsulated JavaScript & CSS progressive enhancement custom events polyfills
  • 13. VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023 Web Components : who ? https://github.blog/2021-05-04-how-we-use-web-components-at-github/ https://vitemadose.covidtracker.fr/ https://opensource.adobe.com/spectrum-web-components/
  • 14. VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023 Web Components : example no JavaScript:
  • 15. VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023 Web Components : list custom element names console.log( [...new Set([].map.call( document.querySelectorAll('*'), el => el.nodeName.toLowerCase())) ].filter( customElements .get.bind(customElements) ) )
  • 17. VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023 TodoMVC using Web Components https://github.com/adobe/web-platform-zoo https://opensource.adobe.com/web-platform-zoo/examples/web-components/todomvc/
  • 18. VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023 TodoMVC: todo-list component Usage:
  • 20. VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023 End-to-end testing: Playwright ? https://playwright.dev/ Cross-browser, cross-platform, cross-language
  • 21. VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023 Testing the TodoMVC Web Components Playwright test report:
  • 22. Coda
  • 23. VanillaJS et la Web Platform :: Bertrand Delacrétaz, Adobe, 2023 @bdelacretaz https://fosstodon.org/@bdelacretaz https://grep.codeconsult.ch/ Web Components modern and forward-looking the Web Platform is back! Evergreen Web modern css modern html modern JavaScript https://blog.developer.adobe.com/the-web-platform-is-back-fa5752fabdfc long-lived learning standards