Skip to main content
View on YouTube to comment and like!

Syntax Podcast

What’s Missing From the Web Platform?

Wes Bos Host

Scott Tolinski Host

Scott and Wes run through their wishlist for the web platform, digging into the UI primitives, DOM APIs, and browser features they wish existed (or didn’t suck). From better form controls and drag-and-drop to native reactivity, CSS ideas, and future-facing APIs, it’s a big-picture chat on what the web could be.

Topic 1 00:00

Transcript

0:00

Wes Bos

Welcome to Syntax. Today we're talking about what is missing from the web platform. The web platform, JavaScript, CSS, browsers, runtimes, syntax, APIs, all of that stuff, the last, I don't know, maybe two or three years, we've gotten just this massive swath of APIs that if you walk up to most developers and say, hey, like, what do you need? What's missing? A lot of people will go, like, man, things are actually in a pretty good shape, but there's still a handful of things that are missing from the web, from us being able to build the best apps possible. So what we're going to do is we asked on Twitter, me and Scott have a huge list ourselves, a big wish list. We're going to go through all of the different things that we wish we had from, like, primitives in the UI, different types of syntax we'd like to see added to JavaScript, different APIs we'd like added, Bluetooth, serial, NFC, and then CSS. Browsers, as well as, of course, we'll talk about the AI access and what those APIs might even look like in the browser. My name is Wes Bos. I'm a developer from Canada. With me, as always, is Scott Tulinski. Scott's a little hurt today. Want to give us the lowdown?

1:14

Scott Tolinski

I don't, you know, I'm always hurty. I feel like, I feel like every other episode we do, I got some, something going on.

1:20

Wes Bos

Some ailment.

1:21

Scott Tolinski

Some ailment, yeah. No, I had, I had an elective surgery done. I couldn't breathe. I had a deviated septum, so they had to go in and, I'll, I'll save any of the gory details. They opened things up and fixed all that stuff. Slice it

1:36

Wes Bos

right up.

1:36

Scott Tolinski

Yeah, so I can breathe. Like, I, I was snoring and stuff, and it's not like sleep apnea. It's just because I broke my nose or whatever happened. Recovery's not usually that bad. I was supposed to be good by, like, Saturday, Sunday, you know, after a surgery on Wednesday. And for the most part, my nose feels great, but I had some from the trachea they put in. My throat is all jacked, so I got, I got throat numbness. What's going on? I'm on some drugs, but I, I feel, I feel ready to go. I, I can talk. Yeah, let's go. I'm, I'm excited about this actually, because I was looking over your episode notes and I had a couple of wild ideas myself of things that are, are not likely, but,

2:13

Wes Bos

yeah,

2:14

Scott Tolinski

yeah, I, no, I, I'm, I'm, I'm curious because the web, does seem like there's just awesome stuff all the time these days, and I'm excited for what could be, you know?

2:25

Wes Bos

Yeah. All right, so the first one we have here is better primitives, in the DOM, right? So what that means is that, like, we have select, you've got, like, radio checkboxes, you've got, date picker, things like that, but typically nobody uses those primitives aside from maybe input type of text and input type of email, and, and then past that everybody's npm installing something and, and using a whole bunch of JavaScript. And that's because, like, the, the primitives suck. Like, the input type of date sucks, right? That's Not a good experience to be able to do it. You can't style it how you want, you can't have full control over it. So the web platform knows about this and they've been working on it. And the first big one we've had in terms of a very good primitive is the customizable select. And what that allows you to do now is you can now create a dropdown with A select element, but you have full control over all of the CSS, what it looks like, all of that great stuff without having to give up any of the downsides of like accessibility and keyboard control, things like that, as well as like you don't have to install a whole bunch of stuff, which is the customizable select is absolutely awesome.

3:38

Scott Tolinski

Huge improvement.

3:39

Wes Bos

Like this is almost like moving into like headless UI as well, meaning that like headless UI is the browser will bring the functionality or your JavaScript library brings the functionality and you bring the divs, you bring the CSS and you can sort of render it out and add whatever divs or spans or anything you want inside of there. Now, that's great. And now they're working on like multi-select as well as combo box, you know, be able to like filter, find people, drop down. And then a lot of people are saying like, What other inputs do we need? Like date picker is the big one. So they are working

4:13

Scott Tolinski

on combo box? I didn't catch that.

4:16

Wes Bos

Yeah, combo box is being worked on right now, which is huge because you want to be able to like filter and select multiples, you know, and select the three tags from this list. You want to filter and select the items and have a list of the tags that you've selected.

4:31

Scott Tolinski

Yeah, I'm always looking at OpenUI for ideas for a lot of these things because it's like a W3C community group where they're researching just UI elements and what could be.

4:43

Scott Tolinski

And it's a good place to list through the kind of things that we would need. But yeah, I think that the first one you have here is date picker. Yeah, we have a date picker. It's Questionable. I don't, I, I, I use it when I'm lazy. I'll say that. I'll, I'll use the date picker when I'm lazy, but it, it ultimately isn't as functional or as useful as other, you know, JavaScript based date pickers. So to me, I, I think that there's just like a major opportunity there to improve that.

5:15

Scott Tolinski

make it stylable too. Like, come on. all this stuff. I don't feel, I feel like nothing should be added that can't be stylable. No,

5:24

Wes Bos

I, I don't think anything will ever be added that can't be styled like any longer, right? Really? Because

5:29

Scott Tolinski

those

5:30

Wes Bos

days, those days have passed. If you're, if you're making any new primitives to, to the browser, they're, you gotta be able to fully control it. You gotta be able to render out the different parts of it. You can't just like write video tag and then, and then that's it, right? You should be able to have access to all of the, like a default UI. That's, I know that a lot of people were saying that as well. It's like have good default UI. That's, that's nice. But also, Give us full control over these, these parameters. So I don't think we'll ever see a date picker, and I'll tell you why, because a date picker is so complex, right? You, you have range inputs. You want to, sometimes you want to be able to put things on the different days, like maybe you want to put prices for like a flight or Airbnb.

6:12

Wes Bos

you want to be able to not allow selecting of, of certain ones. It is just far too complex for that type of thing. So I don't think we'll ever see a date picker, and in that case, if you have a complex date picker, that's something that you probably should still reach for an external UI for.

6:30

Scott Tolinski

Yeah. Yeah, I think, I think that probably tracks. It is one of those things that feels like you need more often than not, and then every single time you're, you're doing it, and it's just, you know,

6:40

Wes Bos

yeah,

6:40

Scott Tolinski

yeah, yeah. It's one of those things. There's

6:42

Wes Bos

good ones out there. I think the idea with a lot of these primitives that we're getting, you know, like customizable select, accordions, popover, anchor, a lot of these primitives are not meant to be like, you'll just use this thing straight. It's like here is a primitive which you can then customize yourself or like ShadCN is going to use these primitives in there and that means they're going to need a lot less JavaScript in order to make it work and you can simply just pop it in and you can you could just slap a select in there and then you can import some external CSS library and the thing will start looking pretty good.

7:18

Scott Tolinski

Yeah, I have tabs on here.

7:21

Scott Tolinski

Like, bro, tabs have been like the most common, one of the most common UI elements of all time.

7:29

Scott Tolinski

And how do we not have a tab HTML system? I mean, we have accordions, details and stuff like that. They could do anything with tabs. I feel like this is just long overdue personally.

7:41

Wes Bos

Can't you do that with An accordion? Like, like a details?

7:46

Scott Tolinski

I mean, no, not, not to the degree that you would want to. Like, the thing is, is that you, you'd want it to just function like tabs, like how, how they, how they function. And,

7:55

Wes Bos

and

7:56

Scott Tolinski

you don't have to hack it. And so for me, I, I feel like this is the obvious one, but.

8:02

Wes Bos

another one for me is like a file upload, at least being able to style it, and if it's like a, like an image, you could preview it. anytime you want to like preview an image that somebody has uploaded, you gotta, you gotta get the file reader API out, you gotta read that thing into like, like a binary blob, and then you gotta paint that thing. You, you either then convert that Blob into like a URL, which you can then display as like an image, or you can paint that thing to a canvas and then you can resize it based off of that. But so many times I've just wanted a simple file upload, and then I want like a half decent being able to style it.

8:38

Scott Tolinski

The default styling for the default file upload is one of the worst things on the web.

8:46

Scott Tolinski

I've made so many drop zone components for dropping files and stuff like that, and it's like, I always hate having to like do that without an actual JavaScript based component. I actually do have something that is just a CSS version of that in my graffiti UI library. That is like a drop zone nicely styled, but it doesn't have the previews and stuff like that. So I can totally see. One that I have here is toggles. Yeah, we have a checkbox. And yes, Safari does have toggles. Just add it to Chrome, add it to Firefox. Like, do it. Because the toggle is such a ubiquitous standard UI element at this point. The fact that Safari is the only one that has added it as an option to be default styled and stuff.

9:37

Scott Tolinski

Just do it. Make it stylable. Toggles. Come on.

9:40

Wes Bos

Yeah, this is so key because like what are you going to do otherwise? You're going to make it not accessible, right? You're going to put a whole bunch of divs over top of the thing. You're going to hide the actual checkbox and you got to spend a whole bunch of extra work trying to get that thing to be accessible.

9:56

Wes Bos

Or you're going to install some third party component. Right. Toggle. Yeah, it's such a good primitive that we need to have. We have progress. We have like the progress bar.

10:07

Wes Bos

That's, we're almost there, right?

10:09

Scott Tolinski

Yeah.

10:10

Scott Tolinski

Yeah, all of these ones. And again, like Safari did it. So it's not like nobody's doing it.

10:16

Scott Tolinski

And that should be enough of a good start. I don't know.

10:20

Scott Tolinski

Not adding this just feels weird to me at this point. I also have native drag and drop that doesn't suck. You know, the, the drag and drop just kind of aesthetic, it like ghosts it out in the way that native drag and drop works. Like, it's another one where it just feels half-assed in terms of the implementation not matching how people actually want to use drag and drop in real life. So, you know, it's fine. It's

10:45

Wes Bos

never going to happen. It's never

10:47

Scott Tolinski

going to happen. I know. If you take

10:48

Wes Bos

a look at Atlassian's pragmatic drag and drop, we had the developer on the show. That drag and drop is such a can of worms that I think they did the right thing in that they, they gave us the, the correct browser primitives for draggable, droppable. They gave us the correct primitives for like drop zone, where you're allowed to drop things. They gave us all of the JavaScript events for that type of thing. But there's so many things like what happens when you start dragging it? Does it leave the old thing behind? Yeah. And, and then it ghosts it out or does it immediately like move up? Like if you're dragging. Item from a list should immediately take it out of there. And what happens when you drop it? Does it make a copy of it? There's so much to it that I think that this is absolutely one of those things where you need to reach for a library. And I don't think there's anything wrong with that.

11:33

Scott Tolinski

I feel like you're going to hear a fully version of idealistic Scott talking in this episode.

11:41

Scott Tolinski

I feel like there's a lot of people are going to be like, yeah, this doesn't work, this doesn't work. And I will admit to my ideas here, a lot of the ideas in here being just fully idealist, not thinking about edge cases, not thinking about reality. I'm fully living in my, I just want this mode in this episode. I'll say that.

12:03

Wes Bos

In terms of syntax for the language, a lot of people said they want type annotations, which is they basically just want TypeScript in JavaScript.

12:12

Wes Bos

And there are kind of like two movements for that already, right? There is a proposal for something called types as comments. Meaning that you would be able to put your, your TypeScript code in the browser, but the browser would simply just ignore it, meaning that it would, it would treat the syntax of, like, the added TypeScript syntax, it would just treat that as a comment, meaning it would then ignore it. so that's being worked on. Whether we'll ever get that or not, remains to be seen, but it seems to be that the, the browser will not care about that, or no, will not use any of that, that information.

12:49

Wes Bos

what do you think? Should, should TypeScript be added to it? Like, it's in Node already, right? You can run .ts files in Node with no problem, install nothing, and it just works.

12:59

Scott Tolinski

I feel like we are so far beyond, beyond the point of where TypeScript was a question mark. I have not written non-TypeScript in just about, I don't know when the last time I wrote JavaScript was. Oh, it, it has

13:12

Wes Bos

been,

13:15

Scott Tolinski

it's been so long since I've made a .js file. I, it's, it's Actually wild because there was a point during this, I mean this podcast has been around long enough that TypeScript was competing with, what was it, Flow and with Reason.

13:29

Scott Tolinski

I mean there was no like guarantee that TypeScript is going to become the thing. But TypeScript is not just the thing. To me, TypeScript is JavaScript at this point. I don't see it any other way and I would be shocked if people are out there writing JavaScript today. Like straight up shocked. Especially because now it's so much easier to just run TypeScript whether you have Bun or anything here.

13:49

Scott Tolinski

So like at this point, just do it. Yeah, it's got to be it.

13:55

Wes Bos

Yeah.

13:58

Wes Bos

Taking their time, because it's not that big of a pain in my butt to run TypeScript in the browser. The, the amount of times I have to like, oh, I can't copy paste this into my like terminal. Maybe that's the thing is I just want Chrome DevTools to be able to strip it out for me when I sometimes paste TypeScript into that. But there is a world where TypeScript is not it and Type JavaScript looks like something else. So taking a look at that whole landscape, not necessarily like what it does, cause this, this is simply just syntax, but, looking at how, how, what are the downsides to, to TypeScript and, and maybe we could make a, some improved syntax and, and allow that.

14:39

Scott Tolinski

Yeah. Why are we thinking about downsides? Just do it.

14:43

Wes Bos

No, that's the thing is that if you, everybody said that with, jQuery as well, you know, just, just do this, just add jQuery to the browser. And they took their time and they figured out like.

14:54

Wes Bos

Like what actually works for the long term health of the web. And I think that is fine.

15:00

Scott Tolinski

This is why you don't let me on any of these committees.

15:04

Scott Tolinski

I am, I'm

15:10

Wes Bos

way too yellow at, I'm just like, yeah, I'm too far gone in that direction on everything also. Yeah. Yeah. Like, like stepping it back until you, you reach the outsides. A pipe operator would be so nice to be able to just like run a function, take the output of that, and immediately pipe that into the next function. And it's been a proposal for many, many years. I'm not sure we'll ever get it, but I would love it.

16:02

Scott Tolinski

Yeah, it, it is one of those ones that's just been hanging around. It, it does feel like some of these things just sit in limbo forever. And I, and I mean, Again, I, the, the entire like process of that needs to take time for the reasons we've already outlined. So yeah, it's, I, it's something I would absolutely take.

16:20

Wes Bos

It's stage two and was last updated three years ago.

16:24

Scott Tolinski

Oh, okay, cool.

16:25

Wes Bos

So. Wow,

16:26

Scott Tolinski

three years. Not looking great. Yeah.

16:28

Wes Bos

Not looking great.

16:30

Scott Tolinski

Yeah, just in, in limbo. Yeah.

16:32

Wes Bos

Next one is APIs. these are APIs that we want to be added to the web platform. one API, this is not something I want, but something that was really cool is I, I just started up Riverside here with, with Scott and he's like, yeah, your, your video's a little choppy. And then Riverside popped up this little thing that says, hey, plug your computer in and you'll get better, you'll get better perf, right? Like browsers will sometimes throttle things in the browsers if you're on battery. And as soon as I plugged it in to power, that little thing went away. And that's the navigator.getBattery API. And that's Beautiful, beautiful use case of that API. And those are the types of things where you, we used to complain that like native had a lot of these APIs and now we, that's just in a website. That works great.

17:19

Scott Tolinski

But, things

17:21

Wes Bos

we actually want, please, oh please, oh please give me an API for doing cookie banners. I am so sick of the web. You visit any website, you're blasted with a cookie banner and like they never remember what you want, you know? Like, accept all cookies or whatever and you gotta sit there and think about, what do I want? I don't care. Get it out of my face. I know that there's browser like extensions, you can like, you can ignore them and all that. We need a set of APIs for Opting in to cookies, opting consent integration, what people have consented to, saving that in the actual browser. We need those APIs like yesterday

18:01

Scott Tolinski

because the

18:02

Wes Bos

web is a mess with cookie banners.

18:04

Scott Tolinski

Yeah, and so many of the cookie banners are coded poorly or they feel like they, they, they're like dark patterns all over the place. It's like either, yes, I want the browser to accept all my cookies or no, this is dangerous. You don't accept it. Like so many people are like the way that they present these banners to you are not nice. I'll just say that. They're not nice for the user in many ways. So yes, standardizing it, I feel like at this point needs to have happened.

18:31

Wes Bos

You know what's a nice website that doesn't absolutely blast you in the face with cookie banners?

18:37

Scott Tolinski

I got a feeling, right? Yeah. yeah.

18:40

Wes Bos

Century at century dot io forward slash syntax is they got rid of all of their cookies on their website and they had like a massive project to go through. Like something as little as embedding a YouTube video requires a cookie banner. It doesn't mean that you have to get rid of all cookies, right? Like like a login cookie, a recession cookie, those are fine, but like a cookie that tracks you across the web, those you have to actually opt into. So Century went on this huge thing to remove them from their platform entirely, which was absolutely awesome. So You should probably use Sentry for for your website, for your bugs, for fixing your code. I got this AI thing called Seer that will take a look at your bugs and automatically fix them and send you a pull request. It's fantastic. Sentry dot io forward slash syntax.

19:28

Scott Tolinski

Yeah, did you know Wes that like there's a billion companies that use Sentry like Claude Anthropic uses uses Sentry Disney Plus uses Sentry.

19:40

Scott Tolinski

There's just like some of the Peloton uses Sentry. Every time I'm on my doing Peloton, I think about that or Tonal. So shout out to all the companies using Sentry out there in the world. Next one I have here, this is, I don't know if this will be controversial, but identity. Oh, there's so many. I don't, I'm going to say, I don't know how this would work. Technical details seem like a nightmare for this. We log in. Most of us are logged into our browser. Like it should be easy enough to use that state of login, whether it is via passkey or whatever, to use that login state on an app. Now I get it. A lot of people are going to hate this idea because you want to have the individual app have the login and everything like that. But it does feel like there has to be some sort of way To use identity easy on your site and not have to reinvent the auth wheel on every single website.

20:35

Scott Tolinski

It just feels like there has to be some way to do that.

20:38

Wes Bos

Yeah, some sort of, like Passkey was not entirely that, right? But Passkey was an attempt to make the pain of logging in much easier. And I love it when it works. Man, logging into GitHub with a Passkey, I absolutely love it, right? But I think at the end of the day, this is going to be a phone in your pocket thing.

21:03

Wes Bos

People are going to be able to sign in with the phone in their pocket or scan your retina or something like that. Yeah, like why can't, like Face ID.

21:12

Wes Bos

Be the thing. I guess you're almost there with like signing in with Apple, right?

21:15

Scott Tolinski

You're, yeah, sure. But it's still at the end of the day, what it's doing is it's creating a record in the database with the email address and whatever, and then that is controlled. Like, I don't know. Yeah.

21:27

Scott Tolinski

I don't know. Again, idealistic Scott says, hey, we're reinventing the wheel so much here.

21:33

Scott Tolinski

Yeah.

21:33

Wes Bos

One thing I have wanted for the longest time, and I've actually written this function myself, is get element by text. Meaning that, like, you can select an element based on its IDs or attributes or based on the children it has or if it has a specific thing, but you cannot select an element based on the text that is inside of it, either in JavaScript or in CSS. And I would love, love, love, especially with a lot of these agentic browser things, you know, MCP server with Playwright, you can select an element by text.

22:07

Wes Bos

I would love a native API for that. I don't know if we'll ever get it. It was doable. With XPath. Before we had, not before we had document.querySelectorAll, not before we had document.getElementById, we had this thing called XPath, which is a way for you to select elements based on their XML indentation. And there was something in there that would allow you to select based on the actual text of the element, and that would be sick.

22:35

Scott Tolinski

Yeah, did you ever think that we had, XPath the same time we had XPOC? Do you remember XPOC?

22:41

Wes Bos

What's XPOC?

22:41

Scott Tolinski

It's like a, a, a 2000s era professional wrestler.

22:48

Wes Bos

Oh, man.

22:54

Wes Bos

Oh, I just googled him. He's doing the suck it. Yes, he, he was,

22:58

Scott Tolinski

he was the guy. He was the suck it guy. He was the guy. Oh, yeah, yeah. I mean, he might not have been the only, I mean, he's definitely not the only guy, but he was like, he was Mr. Suck it, I think, for sure.

23:10

Wes Bos

I did not watch wrestling growing up. I had no idea, but we, me and my friends would walk around school being like, suck it, and we had no idea what that meant. Everybody did, yeah. Just saying, nobody knew what they were doing. Now I'm older, I'm like, oh, I probably shouldn't have been saying that.

23:26

Scott Tolinski

Oh, yeah. There was a time, I think when I was in like ninth grade, where I, I don't think you could have not watched wrestling, for that one year.

23:32

Wes Bos

I, I don't, I've maybe watched like one or two wrestling, and then, what's the one where everyone beats the shit out of each other, but it's real?

23:41

Scott Tolinski

Oh, I don't know.

23:42

Wes Bos

No, it's like, it's huge right now. But backyard

23:44

Scott Tolinski

wrestling or?

23:45

Wes Bos

Dana White,

23:46

Scott Tolinski

Oh, oh, UFC. Oh, okay. Yeah,

23:48

Wes Bos

UFC. I went to a UFC party once. Holy hell, not for me. That's awful to watch.

23:53

Scott Tolinski

I watch a lot. Well, I don't lately, but I did watch a lot of MMA to the point where I was watching like minor league circuit stuff and stuff.

24:04

Scott Tolinski

But yeah, no, I, I, I like combat sports. That's for sure. I don't watch professional wrestling, no. All

24:09

Wes Bos

right. This is probably high on my list with browser primitives, and this is just native reactive templates, meaning that you have a variable, you put that variable in the DOM somewhere, and when that variable updates, So does the DOM, right? Some sort of templating, some sort of reactive variables, whether that is with, like signals or whatever they choose to do. I would absolutely love something because I, myself, if I'm coding up something very quickly in, in vanilla JavaScript, I'll always just make some sort of like a re-render string where you watch the variable to change. It'd be great to have that as a, a browser primitive.

24:49

Scott Tolinski

Yeah. Here's another one. sync protocol. Wouldn't it be great if you had some kind of, CRDT sync setup that you could just access, like fetch? Now, granted, there's gotta be a server involved, so you'd have to have some sort of, sync server.

25:04

Scott Tolinski

but like, the, again, this is never gonna happen, but like, A primitive for accessing sync with a CRDT or even creating that server.

25:15

Wes Bos

Like, I mean, we have WebSockets, right?

25:16

Scott Tolinski

That's what I'm saying. Something along a protocol like WebSockets or even, even how about this in terms of the same world of a data or a, a local first or whatever, just databases that don't, don't suck built into the browser.

25:32

Wes Bos

Cause what do we have? We've got like local storage, not really a database, got more of like a key value string store. You've got index DB, right?

25:40

Scott Tolinski

Yeah.

25:41

Wes Bos

there's implementations of SQLite.

25:44

Wes Bos

But you want something that's, that's a little better?

25:46

Scott Tolinski

Yeah, yeah. Something along the lines of what they were doing with like Postgres in, in Wasm, you know?

25:52

Wes Bos

Yeah. Virtualization that doesn't suck. What do you mean by this?

25:55

Scott Tolinski

Yeah, like virtualized lists. You know, all, all the virtualized list solutions, especially in like React list or React virtualize or whatever that was, virtualization for people who don't know is that it renders, you could, you could have a wrapper that only, like if you have a list of a hundred items and that wrapper is only like five items visible, the additional hundred items or ninety five items are not going to render. basically saving your browser from having to do that work. The problem is, is a lot of these virtualization libraries then break search. And then if you do command F on the page, it doesn't find the item cause it's not being loaded. So like, something that, controls rendering in that way that still doesn't break command F, those types of things.

26:41

Wes Bos

Content visibility in CSS is supposed to do this. so the, it's a controls whether an element renders its contents at all, along with forcing a strong set of containment, allowing agents to potentially omit large swatches of layout and rendering work until it becomes needed. Meaning that like, you have a list of 20,000 list items, you can put a content visibility property on there, and then the browser will defer rendering it until it thinks it, it actually needs it. This is one of those things where I don't think we need APIs for this.

27:16

Wes Bos

I just think that like, like I've had I've had problems with content visibility where I took it off and my performance drastically increased. It was way better, right? I think that browsers just need to sort this out and then we can just, we can use as much HTML and you figure it out, right? You're the rendering agent.

27:32

Scott Tolinski

Yeah, yeah. Why am I figuring? You should know if something is on the screen or not and control how that works. Yeah. For

27:40

Wes Bos

sure. Ollie Williams, hype dev on Twitter says, we want put, patch, and delete on form. So form elements in the browser can only do two things, get or post, right? And if you're building an API, you should be using the rest of those, which is put, patch, delete. I think there's a couple other ones, options. That's a stumped question for later.

28:03

Wes Bos

But If you're trying to build your app in a way that will ideally work without JavaScript, or you're trying to build on like web standards and then using JavaScript to like progressively enhance, if you're updating an item and you want to like use a patch or like a put, or if you're deleting something and you want to simply just have a button that deletes that item via a form submission, you're kind of out of luck. You got to like, you got to put that into a post, right? And then you got to put it on a different endpoint of like delete item. So that would be, that'd be pretty nice as well.

28:37

Scott Tolinski

Yeah, I'll take that. I never understood why we have those verbs and they're not just all there.

28:42

Wes Bos

That's a great question. Like why, why did they invent those as the browser or not, they didn't invent it as a browser. They built it as part of like networking stack.

28:51

Scott Tolinski

Yeah.

28:51

Wes Bos

But why did we never implement those in it? Another one from Carl, Snorkel TV says, text metrics, get bounding box of individual characters.

29:04

Wes Bos

being able to measure the actual size of it. And we, the text box trim has been a fantastic addition to CSS, meaning that if you've ever had that weird thing where your, your, your text is a certain height, but like the text is at the bottom of like the line height and it's not centered, text box trim takes care of so many of those use cases, which honestly is probably better than having to measure characters, but there still are, especially in like animation world, there's still lots of cases where you would want to measure how big a letter is, and right now your only option is span wrap, wrap every single character in a span.

29:43

Scott Tolinski

Yeah, hell yeah.

29:45

Scott Tolinski

for low, lower level connections, you have like Bluetooth listed here. Am I right? I thought there was a Bluetooth API. I, I, I've used this, by the way, yeah.

29:55

Wes Bos

So there is a Bluetooth and a WebSerial API, which allows you to talk directly over obviously Bluetooth or USB.

30:05

Wes Bos

And this is super handy for things like programming microcontrollers or being able to update the firmware on your headphones without having to download like some sketchy like install thing just to simply update the firmware, right? And that's why a lot, a lot of devices, if you want to update the firmware, you, you don't download an app. You don't visit a website. You, you get the iPhone app, right? And the iPhone app is going to be able to do it. So there are Bluetooth and WebSerial, fantastic APIs, but they have not made their way into standards. They have not made their way. Safari says no way. Firefox hasn't implemented it. So that would be really nice to have control over those things. Sockets, we have WebSockets, right? And this is a security thing as well. You're not going to be able to access sockets directly, but when I was driving my Roomba with JavaScript, and when I was flying the drone with JavaScript, both of those things communicate from the computer to the, the wireless device over a socket. So you open up a socket and then you just have these, these lanes where you can send data back and forth. And in order to actually access that data in the, in the browser, you need to create a server that runs on your computer, and you gotta hot potato the data. So the data goes from the drone to a node server, and then the node server sends it over a web socket, so you can actually access it in the browser.

31:30

Wes Bos

NFC, RFID, again, that, those things would be fantastic in the browser, especially if you're trying to, you're making like a progressive web, web app, where you wanna be able to scan something with RFID.

31:42

Scott Tolinski

Yeah. Dude, NFC is so underrated in general.

31:46

Scott Tolinski

Yeah.

31:46

Wes Bos

It's, it's really good. Look at this, I've got We've got like a, a Yoto that I've been, been hacking right here, and here's the, the NFC card,

31:55

Scott Tolinski

and I've

31:55

Wes Bos

got this little, this is called a Proxmart 3, little NFC RFID writer. Oh, cool.

32:01

Scott Tolinski

Yeah. I've been

32:01

Wes Bos

using that for my bamboo lab, the little things that go on these spools of filament, so you can write them. It's, it's a wild world, very fun.

32:11

Scott Tolinski

I'm gonna say, Wes, one thing I love about you, you always got some shit on your desk that's going on, that's, that's cool.

32:18

Wes Bos

A lot. Can I, can we play, what are the most random things you can find on your desk?

32:23

Scott Tolinski

Yeah.

32:24

Wes Bos

USB, UART, so this is connecting serial. My sister got like a, some broken thing, and I, I soldered to it, and I could see the boot logs of that device. What else I got here? Some glue.

32:38

Scott Tolinski

I have a, terminal screen.

32:41

Scott Tolinski

I love this thing. Oh,

32:42

Wes Bos

that's cool.

32:43

Scott Tolinski

Yes. You know, the terminal screen can last for months, because it doesn't update. The data on it, it doesn't hit the web very often. So it has a set number of screens that it changes between. This is an e-ink

32:56

Wes Bos

display for our audio listeners.

32:58

Scott Tolinski

Oh yes, it has, it's an e-ink display and you set up essentially scenes and those scenes, change every 15, 20 minutes or whatever. But you can also say, hey, don't hit the web to update your data unless it's every like four hours or even every day or whatever. And therefore, because of that, just on this little battery in here, the screen just lasts forever. I mean, it's like got my calendar, all kinds of stuff on here, just cycling through everything. Yeah, love it. Love

33:29

Wes Bos

that.

33:30

Wes Bos

For some reason I have an iPhone 3, cause one of my kids had it the other day and I was like, hey, that's history. Don't, where did you find that? They probably went through my boxes and took it out. Salad spoon, I was, I was writing or making some bins for my 3D printing, so I was measuring the spoon and I never brought that back up. Yeah, I got a, what do you got, a blower?

33:49

Scott Tolinski

A wolf box blower, it's blowing. I got a, a silicon soup thing that you, do you have one of these?

33:55

Wes Bos

Silicon soup thing, no. You put

33:57

Scott Tolinski

it in the microwave and then you put your soup on it whenever you're microwaving it and then if I need to carry it to my office, like I often do, you just pick up this and carry it into your office like that.

34:08

Scott Tolinski

that way.

34:10

Scott Tolinski

Bro, I've spilled so much soup, I, I've, I've burnt, yeah. I gotta have a silicon soup sleeve.

34:17

Wes Bos

I got the Mad CSS logo, by the way, if you haven't checked that out, go to madcss.com, we're doing a major CSS battle tournament, it's gonna be awesome.

34:25

Scott Tolinski

Yeah.

34:26

Scott Tolinski

Wow. The rest of the stuff on my desk is related to my surgery. I'll tell you that.

34:31

Wes Bos

I could go, I could go all day, but I think that's enough. Let's talk about CSS, things that we want in CSS. Aside from some of the like primitives being able to style them, Nick Williams says, a way to specify speed, example pixels a second for transition animations rather than just a duration. That's, that's really cool, right? Because If you have an animation, you tell it, I don't know, 100 seconds or 300 milliseconds, 200 milliseconds, but you don't know how far that is actually going. And if you want all of your, if you want them all to feel the same way, same thing where like if you like cancel a transition halfway through, it would be cool to get the physics of that rather than just break it in the middle of a Bezier curve and then just reverse it from, from there on out. That would be sick in, in CSS, yeah.

35:19

Scott Tolinski

Yeah, yeah, I agree. I, I, I don't know if I'll, yeah, if I am dying for that, but yeah, more the merrier.

35:24

Wes Bos

CSS strict mode, there's a lot of like baggage in, in CSS, right? Like what, how long has CSS been around for, 100 years? So there's 100 years of baggage in CSS and there are a lot of weird like oddities that you just kind of have to deal with because they don't, you can't break backwards compat of the web. But what if we could? What, like in, in JavaScript, we did it, right? You, you just have like a use strict. You can pop at the top of your JavaScript file or if you. Simply just use an ES module, then that's considered strict mode, and all of the baggage of the weird web is, is gone. You break those APIs. So can't we also get strict mode, right? Yes. Turn border box, on by default?

36:08

Scott Tolinski

Yeah, and there, there's so many dumbly named properties and stuff, like, right? I'm fine with breaking things if you, if you have a version or a strict mode or whatever. I'm fine with that.

36:20

Scott Tolinski

get rid of some of the cruft, stuff that you don't need, and make, yeah.

36:26

Wes Bos

one for browsers, Christopher Van Houten says, I'd like to see Safari move to Chromium. You hear this a lot. A lot of people say Everybody just moved to Chromium, it would be so much easier for me. I, I'm gonna tell you, you do not want that. We do not want a world where there is one browser engine. As easy as it would make your life to be able to just run one engine and run everything and it runs absolutely everywhere, you do not want a single browser engine. That's what's going to cause the web to stagnate, that's going to cause a whole lot of, lot of pain. You do need these things to compete.

37:00

Scott Tolinski

I want iOS Safari to be, to be blink, that's it. That's it. Yeah, I don't know, like iOS Safari is the dumbest one to, to debug and I have so many issues with it and there's so many like little things here and there with iOS Safari. You can get, you can have normal Safari on WebKit, keep the, keep the variety going or whatever, but like iOS Safari or just give me effing Chrome with Blink on iOS, please. Like, I'm so sick of, of. But give it to

37:29

Wes Bos

everybody, though, because otherwise, like, normies are not going to change their browser engine on iOS.

37:35

Scott Tolinski

I just, yeah, just for my own personal, sanity.

37:38

Wes Bos

Some countries have already done it. We talked about that a couple episodes ago.

37:41

Scott Tolinski

They shouldn't have to have the countries force the company to do the right thing.

37:46

Wes Bos

Yeah.

37:48

Wes Bos

AI access as a native API. I'm going to tell you, and I actually had several calls with folks that work on, on Chrome, and I don't think we need this yet. Yeah. Because I don't think that we have figured out what these APIs need to look like. And if you rush these APIs out the door based on, like, what we need right now, which is, like, Prompting and streaming back text into a chat, then these are the APIs where people are just not going to use them because they're just, oh, these are not nearly as good as what we have. That's

38:20

Scott Tolinski

what happened with Web Components.

38:22

Wes Bos

Yes, we do eventually need, I think, some sort of AI access in the browser that will allow you, and my idea is that eventually we're going to get to a spot where you will be able to use your computer's baked in model, if you want to. Meaning that, like, hopefully, in my ideal world, this API would be, you can use the local AI that lives on the device, or you can swap that out for a model that you load in yourself, kind of like Transformers.js. Maybe you load, like, I don't know, a gig model into your application, because it's well worth it for that. Or you can hit, like, an external API for that type of thing. One API that will be able to do that. And then if you can access your, like, the iOS model or your Mac's model or whatever that is on there, then it becomes private, it becomes Free, right?

39:17

Scott Tolinski

Yes.

39:18

Wes Bos

The user's paying for it in their battery and their device, but it could be significantly faster. Like, what happens when you can run inference on absolutely everything? What happens when it's extremely fast, where it doesn't take four, five, a hundred milliseconds a second to come back? What happens when it's like an instant? That opens up a lot of possibilities.

39:40

Scott Tolinski

Yeah, really cool. I've been thinking a lot about this kind of stuff lately. Yeah, for sure.

39:45

Wes Bos

Chrome is working on this. They have, I'm in the beta that you can like test it out. There's like local AI models. And what it does is Chrome just downloads a small enough model and then it will run it on your machine and then you can just ask it for things. But it's slow, it's not very good, and it's at a spot now where people will go, cool demo, but I'm not actually going to use that because it's not very good. I'm just going to use the paid one.

40:12

Scott Tolinski

Yeah.

40:12

Wes Bos

Even things like Date picker input, like natural language to date picker, right? The date picker of the future will simply just be me typing in February 18th, three years ago, or the last 40 days starting from next Tuesday. You know, you'd be able to just type those in in natural language, have a model compute what that actually is, and then return to you some temporal durations that will match it.

40:38

Scott Tolinski

A-A-G-I is me entering my credit card expiration date in any gosh darn format that I want and having it just understand it.

40:50

Wes Bos

Oh man, let me tell you about postal codes inputs in Canada. Holy hell. So postal codes in Canada are, like, like a, like a letter, a number, I don't even know, but it's so obnoxious because, first of all, on iOS, you have to switch between every other letter, you have to switch between the keyboard and the number input, and sometimes they have to be capitals, and you generally put a space in between the first three and the, the second three numbers or, or digits, but sometimes you don't. And then, like, the validation on postal codes is a nightmare.

41:26

Wes Bos

Sucks. I

41:27

Scott Tolinski

know.

41:28

Wes Bos

We need AI for these things, you know? Like, I, I know a lot of you listening are big thumbs downers on our AI episodes, but, like, You gotta, you gotta agree with me that like a, like an AI local free private model that can parse data inputs for you or just like simply just like fix your validation errors that are, oh, I've put a space after my email address, you know?

41:53

Scott Tolinski

Yes. I, I'll, you know what? That seems

41:54

Wes Bos

like a good use case.

41:55

Scott Tolinski

I'm gonna, to echo David Kramer's sentiment lately, and it's, it's The, the people in, in January 2025 who are still LOLing about AI coding not being useful or good, bro, you are missing it. You're, you're missing it entirely. I, I think, I think you, you gotta update your brain because things have changed. The, the landscape has changed. Everything has changed. I can understand ethical in, in those types of stances on things, but if you're, if you're LOLing it because you think it's not capable, you are

42:33

Wes Bos

wrong.

42:35

Wes Bos

You are very wrong.

42:37

Scott Tolinski

Yes, bro. I

42:38

Wes Bos

was thinking about that as an episode. What do you, what do you think about that? It's like, let's go on blue sky.

42:43

Wes Bos

And ask what people's hangups are.

42:46

Wes Bos

And like, not just like, it's actually really good. Cause like, a lot of it sucks, right? Frigging, have you ever tried to like, fix a CSS bug with AI? It's awful.

42:57

Wes Bos

There's all kinds of

42:58

Scott Tolinski

things, yes. And some things take longer, absolutely. It's not

43:03

Wes Bos

worth it in lots of cases. Some things are

43:04

Scott Tolinski

absolutely not worth it. When I did the Hack Week project for our syntax, our CSS battles thing, man, it was way faster to do all that by myself.

43:15

Scott Tolinski

That's for dang sure. But like, there's a lot of things that can save you a whole ton of time on, for sure.

43:22

Wes Bos

All right, I'm putting that on. I'm going to blue sky. I'm going to get absolutely destroyed. But we'll like, put together all of like people's Thoughts and like why they don't use it.

43:35

Wes Bos

and then we'll, we'll just like kind of go through them and say like, that's valid or that's, I think you are wrong there. Here's how you could, you can fix that type of thing.

43:43

Scott Tolinski

And people, when you are defending your stance on not using AI, would it hurt you to not be such an asshole? Like crazy. People were just yelling at people all like, look at this stupid loser who's using AI. West did something. West had some tweet about 3D on AI and, and there's just some absolute loser on Twitter, just calling him names for no reason. Like what?

44:14

Wes Bos

Somebody call me a name?

44:15

Scott Tolinski

Bro, you were quote tweeting them.

44:18

Wes Bos

Oh.

44:20

Wes Bos

I forget what that was.

44:21

Scott Tolinski

But, yeah, you're right.

44:24

Wes Bos

To be fair, there are so many obnoxious people in this space. There are so many

44:28

Scott Tolinski

obnoxious people, yes.

44:30

Wes Bos

And like people that have obviously vested interest

44:33

Scott Tolinski

in

44:33

Wes Bos

saying that this is the next thing, and lots of people just straight up lying.

44:37

Wes Bos

so I get it. But, I feel like I'm not one of those people, and I feel like I have a pretty good stance on this stuff.

44:44

Scott Tolinski

Yes.

44:45

Wes Bos

That's where we're at.

44:46

Scott Tolinski

Just be reasonable, folks, please.

44:49

Wes Bos

All right, last thing we got here is APIs in Node, Bun, Deno, whatever. Justin White says, I want the web speech API in Bun or Node.

45:00

Scott Tolinski

Yeah.

45:01

Wes Bos

I, I agree. And I don't know that, that you want just like a straight up, like that's, that's what happened to Chrome. Chrome implemented the web speech API.

45:09

Scott Tolinski

Yeah.

45:09

Wes Bos

Nobody uses it because it sucks.

45:11

Scott Tolinski

Sounds bad. You know? Yeah.

45:12

Wes Bos

It's, it's awful. And we're like, and we're, we're talking both like text to speech and speech to text. Yep. And there's always going to be better models out there. So what we really need is, yes, you should be able to use like the Siri voice built into the browser if you, if you want, but you should also be able to load in additional models. And, and I think that this gets wrapped up in some sort of AI APIs that are built into the browser that let us optionally use the things that are available on the user's device.

45:41

Scott Tolinski

Yes. You know what, in that same regard, like Give us good, text-to-speech. I just did a text-to-speech server myself, and it's not a problem. I have a text-to-speech server running full-time on my, my laptop, and anytime I need text-to-speech, whether it is through my agent setup or whatever, it just pings my laptop, it's got the voice, it's got the whatever, and it's, it's, it's, it's like really, really good quality compared to, any of the APIs that are in the browser. And it wasn't that hard to set

46:15

Wes Bos

up.

46:17

Scott Tolinski

Right. And, and the voice, it, it's not like, what's the one that we, Eleven Labs? It's not like Eleven Labs good, but it's approaching that good, and it's, it's way better than, than a robot voice. I'll tell you that. I love text-to-speech. I've been using text-to-speech so much with my setup that's generating, it, it's taking research topics for me and turning them into personalized podcasts, and those types of things. And setting That text to speech job has been such a nice thing for me in my learning capabilities, cause I'm not reading anymore. I'm not using the built in Mac OS one that also sucks.

46:55

Scott Tolinski

so yeah, text to speech. Make it nice.

46:59

Wes Bos

Alibaba just released a model called Qwen TTS. Yeah. Which is, in my opinion, as good as a lot of the 11 lab stuff.

47:10

Wes Bos

and you can, you can, apparently you can run it on like relatively normal hardware. Like you could run it on your laptop if, if you wanted to, or you can, 10 cents per 10,000 characters, which, that's a lot, right? You wanna, you wanna read a 5,000 word blog post? Oh, no, 5,000 characters. Yeah.

47:29

Scott Tolinski

Yeah. It

47:30

Wes Bos

probably can get expensive, but it's, it, it's not that expensive. And you can train it on your own voice, which is, again, another ethical.

47:38

Wes Bos

Ethical problem.

47:39

Scott Tolinski

Yeah, I don't, I don't need anything to replace my voice. I don't need anything like that. I just want to listen to somebody teach me things rather than,

47:47

Wes Bos

yeah. Beauty.

47:50

Wes Bos

All right, let us know down below in the comments, what is the web missing for you? What do you want to see added? Cause people are watching. People that do the standards are, are constantly asking this question. They want to hear what do people actually want. Leave them down in the comments.

48:04

Scott Tolinski

Let us know down below what you know.

48:08

Scott Tolinski

let's do sick pics. Wes, you got a sick pic? I got a sick pic while you're waiting. you know what? I was just talking to producer Randy the other day about, like, budgeting and stuff like that, and it made me remember that I have, I've sick picked this a couple of times before, but not recently, and it is New Year. I lean really hard on budgeting software, and, it's important to, to have a good handle on your, your finances at all times. So I, I pay for a service called Monarch, and Monarch was like a good successor to, like, Mint if you used Mint, but it's so much better, and anybody who says Mint was like the pinnacle of this kind of stuff is just, you know, nostalgia, whatever. But they recently redid their goals system, cause their goals were like one of the things that was lacking. The goals are so much better. They give you, like, SAM key reports of where your money is going every month, every year, whatever. And I gotta say, the whole thing is just a beautiful, well-made app. It alerts you for, reoccurring transactions that you, you can be cutting Back on and it helps with so much and Courtney and I now go through this our budget every other weekend and go through the accounts and are all working on it together and it's such a nice great system so check it out Monarch I'll have a link in the show notes if you weren't using it.

49:30

Wes Bos

All right my sick pick I've sick picked this a couple years ago but I can do it again cause it's one of those things I just absolutely love.

49:36

Scott Tolinski

Wow that looks so cinematic on camera right now.

49:39

Wes Bos

Does it?

49:40

Scott Tolinski

I think it's probably cause you're using the teleprompter it's like giving a nice diffuse look it's wow it's beautiful. Yeah

49:45

Wes Bos

it's hitting the glass of the teleprompter anyway this is a slonic rechargeable headlamp I've had this thing for probably four years it is freaking fantastic I'll tell you tell you what I like about it USB-C rechargeable it has a removable 18650 cell meaning that if if this thing dies it's not e-waste you know you just you buy one little battery you replace it it is bright as heck you know like I'm always working on something where it's super dark and I just want to light the thing Up or I'm at the cottage and it's like super dark and I want to see where the dog is, go into the washer, make sure it doesn't get eaten by a wolf.

50:21

Wes Bos

It is awesome. The elastic on it has like out of over four years, it is still in really good shape. It just is comfortable on my head. I've, my kids have some really crappy headlamps they've gotten as gifts and they always take mine because this one is the best. So if you are looking for a nice quality headlamp, it's a very dad purchase, but check out these Slonik headlamps.

50:41

Scott Tolinski

Yeah, heck yeah. Cool. Well, check us out on YouTube. Check us out on your podcast player, all that good stuff, and we will see you next time.

50:49

Wes Bos

Peace. Peace.

Quote it with credit and a link. Quoting Syntax

Share