Fireship · @fireship
21 Awesome Web Features you’re not using yet
Uploaded May 30, 2023 · Length 8:31
Summary
Discover 21 web features you're not using yet, including native HTML dialogues, web GPU, container queries, color mix, CSS nesting, and more.
- web development
- html dialogues
- web gpu
- container queries
- css nesting
- color mix
- web performance
- javascript features
- web features
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
if you're a web developer be prepared to
- 0:01
have your mind blown did you know it
- 0:03
takes longer to say www than it does to
- 0:06
just say world wide web and that one
- 0:08
little change could add hundreds of
- 0:09
milliseconds to your productivity had I
- 0:11
known that 15 years ago I'd probably
- 0:12
have my own space exploration Company by
- 0:15
now but instead I'm still just building
- 0:16
crappy websites speaking of which while
- 0:18
we've all been distracted by the
- 0:19
terrifyingly overhyped rise of
- 0:21
artificial intelligence the web platform
- 0:23
has landed some game-changing new
- 0:24
features that you probably haven't heard
- 0:26
of yet and will change the way we build
- 0:27
websites forever and that's not even
- 0:29
hyperbole the first feature on this list
- 0:31
is huge the native HTML dialogue I first
- 0:33
mentioned this feature about a year ago
- 0:35
but now it's fully supported on all
- 0:36
major browsers and what it does is make
- 0:38
it way easier to build your own modal
- 0:40
Windows normally to build a modal from
- 0:42
scratch you need a full screen backdrop
- 0:43
then a window that sits on top of it and
- 0:45
a bunch of hacked together JavaScript to
- 0:47
show and hide these elements it's always
- 0:49
felt way harder than it should be but
- 0:50
now we have the dialogue which is just a
- 0:52
regular HTML element that you can
- 0:54
reference by its ID and has a few
- 0:56
built-in JavaScript methods to show and
- 0:58
hide it for example to show them modal
- 1:00
we can run the show modal method and it
- 1:02
magically appears in the UI with a
- 1:03
backdrop the backdrop itself has its own
- 1:06
pseudo element that can be styled with
- 1:07
CSS we can then close the modal by
- 1:09
either submitting a form inside of it
- 1:11
with a method of dialog or by calling
- 1:13
its close method on some other event
- 1:15
this makes life so much easier because
- 1:16
you can animate it using simple CSS
- 1:18
Transitions and speaking of making your
- 1:20
life easier today's sponsor is clerk who
- 1:22
provides the most beautiful user
- 1:23
authentication solution I've ever seen
- 1:25
by dropping a few components into your
- 1:27
favorite full stack framework you get a
- 1:28
professional UI that can handle a
- 1:30
variety of different sign-in methods
- 1:31
like passwords magic links social
- 1:33
sign-on and multi-factor off once signed
- 1:36
in developers can easily access the
- 1:38
current user from both front end and
- 1:39
back-end environments in addition clerk
- 1:41
provides the UI for users to customize
- 1:43
their own data and handles Advanced
- 1:45
security requirements like session
- 1:47
management per device features that
- 1:48
could take weeks to roll out on your own
- 1:50
and the UI is fully customizable I had a
- 1:52
lot of fun switching from retro to
- 1:54
neo-brutalism these components can be
- 1:55
dropped into any react framework and
- 1:57
play well with popular back ends like
- 1:59
Firebase and has a free tier up to 5000


