BLUE
Profile banner
JA
Jake Archibald
@jakearchibald.com
Engineer at Shopify. No thought goes unpublished. 'IMO' implicit. He/him.
1.7k followers172 following97 posts
JAjakearchibald.com

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.

0
JAjakearchibald.com

`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/...

Add `class` & `for` aliases for `className` and `htmlFor` · Issue #9379 · whatwg/html
Add `class` & `for` aliases for `className` and `htmlFor` · Issue #9379 · 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...

1
JAjakearchibald.com

🔊 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's new LLM AI API OMG - Off The Main Thread
Chrome's new LLM AI API OMG - Off The Main Thread

Chrome is experimenting with exposing an LLM to the web platform.

0
JAjakearchibald.com

Yeah, that'll use the inefficient bgra format I mentioned in the article 😞

1
Reposted by Jake Archibald
Ssurma.dev
JAjakearchibald.com

Thanks for saying all that! I knew this post was quite niche, but great to hear folks are enjoying it anyway

0
JAjakearchibald.com

📝 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...

Video with alpha transparency on the web
Video with alpha transparency on the web

It's better to do it yourself.

2
JAjakearchibald.com

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...

Garbage collection and closures
Garbage collection and closures

GC within a function doesn't work how I expected

0
JAjakearchibald.com

📝 JavaScript garbage collection doesn't work how I expected when it comes to closures. TIL! jakearchibald.com/2024/garbage...

Garbage collection and closures
Garbage collection and closures

GC within a function doesn't work like I expected

1
Profile banner
JA
Jake Archibald
@jakearchibald.com
Engineer at Shopify. No thought goes unpublished. 'IMO' implicit. He/him.
1.7k followers172 following97 posts