HTML invoker commands are newly baseline! Here's how they work…
@FirefoxWebDevs90K followers
30,666 views
16 Comments
Comments from the original post on X (Twitter)

@milindmishra_
love this!
3 likes

@0xedb
not feeling the -- prefix
2 likes

@onecodeman
That’s very cool! I learned something new today. Thank you for sharing!
1 like

@RelevantElement
Just dropping this here...
1 like

@PLT_cheater
likeable homie
1 like

@mpasternak79
@htmx_org could do this yesterday without any polyfills… this is good direction but this sounds like a 90kb polyfill…
1 like

@thankfrankly
Poor examples

@FirefoxWebDevs
As someone who works in web standards, the best thing is seeing people using a feature better than you could have imagined. So, how would _you_ use this feature?
2 likes

@mplungjan
Making HTML much more unreadable like Angular and Alpine? No thanks

@darylbarnes
This is my favorite new feature in years. Web component authors will be able to take advantage of this especially!

@JennaGrip
I don't see much point with this. Just make the page faster instead.

@FirefoxWebDevs
Won't less JavaScript make the page faster?
6 likes

@JennaGrip
That's not the point. I just think it's the wrong way to solve an issue that could be solved by not flooding a website with dozens of script files. The web is woefully bloated, both on websites and browser tech. 😅

@FirefoxWebDevs
But, this feature allows behaviours to be expressed declarative, without script, when they previously needed script. That means less "flooding a website with dozens of script files", right?
2 likes

@listochkin
Hey, Jake. How do these custom commands interact with web components? For example, can I have a custom element that listens to command events? What if the element with ID is in the shadow root? And unrelated: does the event come with a reference to a button that triggered it?

@azharuddin31
Ok this is nice.