Cursor was making a series of mad suggestions to my code. I rolled my eyes, and ploughed on. But it turned out I'd made a mistake earlier in the function, and the eager-to-please AI was just trying to roll with it. It's a 'signal' I'll look out for in future.
🔊 We're finally getting a fully stylable <select> element! Me and @surma.devoffthemainthread.tech/episode/styl...
And 10 other features we got along the way
`el.className` and `el.htmlFor` have such unusual names because `class` and `for` used to be reserved words in JS. That hasn't been true for property names for 10+ years. Firefox is experimenting with adding `el.class` and `el.for`, yay! github.com/whatwg/html/...
https://dom.spec.whatwg.org/#dom-element-classname https://html.spec.whatwg.org/multipage/forms.html#dom-label-htmlfor I assume these were originally given unusual and inconsistent names to avoid r...
🔊 Chrome folks are experimenting with an API that exposes a built-in LLM. Could something like this work on the open web? Me and @surma.devoffthemainthread.tech/episode/chro...
Chrome is experimenting with exposing an LLM to the web platform.
Yeah, that'll use the inefficient bgra format I mentioned in the article 😞
🎧 Refresh your players, there’s a brand new OMT podcast episode! In this one, @jakearchibald.comoffthemainthread.tech/episode/chro...
Chrome has hidden extensions pre-installed. How bad is this?
Thanks for saying all that! I knew this post was quite niche, but great to hear folks are enjoying it anyway
📝 I set off to find the best way to make video with transparency work on the web. Over 10 bug reports later, it turns out it's better to handle the transparency manually with WebGL. Here's how: jakearchibald.com/2024/video-w...
It's better to do it yourself.
Some updates: ➡️ An IIFE is enough to trigger this leak ➡️ It's a cross-browser issue ➡️ There are other articles on this (some lower-level) ➡️ No, this isn't due to eval() jakearchibald.com/2024/garbage...
GC within a function doesn't work how I expected
📝 JavaScript garbage collection doesn't work how I expected when it comes to closures. TIL! jakearchibald.com/2024/garbage...
GC within a function doesn't work like I expected