Invoker Commands: an exciting upcoming Web Platform API you’ve probably not heard of yet — Lessons of a CTO

August 6, 2024

Back in April, the Popover API gained Baseline cross-browser support and it has received so much fanfare due to it’s ability to be triggered declaratively with just a couple of HTML attributes on a button.I’m so here for this because—as a Web Performance specialist—it enables my favourite activity: deleting legacy JavaScript implementation.

But there’s an upcoming API in the works taking this a step further.

It’s been available as an experimental feature of Chrome for some time, and I’ve used it for the best part of a year now: on my consultancy website and on various client websites – making use of a polyfill, of course.It’s called the Invoker Commands API.

Source: Invoker Commands: an exciting upcoming Web Platform API you’ve probably not heard of yet — Lessons of a CTO

We’ve covered the popover element a couple of times here, and we’ll have a detailed session on it later in the year a our Developer Summit.

But beyond over is the invoker API–a way of calling common browser APIs declarative in HTML, without the need for JavaScript as Ryan Townsend explains here.

This is high on my ‘ones to watch’ list of emerging web platform features.