Stop Using JavaScript for That: Moving Features to CSS and HTML
If you've been building websites for a while, you "know" that some things require JavaScript, and that's just the way it is. Turns out, spec writers and browser makers are both working hard to find common JavaScript patterns and implementing them in CSS and HTML. Things like accordions, auto-suggest, smooth scrolling, and dialogs are all available without JavaScript. Looking a little ahead, things like parallax scrolling, styleable selects and component-dependent styling are expected to make their CSS-debut as well.
In this talk, I walk through a few common patterns, explain how they can be implemented in CSS and HTML, how that's better and what accessibility implications they have.
Vorkenntnisse
- Assumed previous knowledge is having implemented a website before
Lernziele
- Concrete examples across a wide variety of situations where JavaScript is no longer needed during the implementation of a feature
- The realisation that on the web everything keeps working forever, but that that doesn't mean the way something has been implemented is still the most accessible, performant or simple, and that re-learning things is a vital part of web development