A block that stopped needing its own script

An accordion block converted to directives a year ago, revisited to see whether the conversion held.

  bespoke script, 2022     8.1 KB
  directives, 2024         0.4 KB of store, plus a
                           runtime shared with three
                           other blocks

and the thing that made it worth checking: the runtime
is now shipped by core on any page with an interactive
block, including ones from plugins we do not control.

so the shared cost is shared further than we planned,
which makes the per-block arithmetic better than the
conversion assumed.

The runtime being loaded by somebody else’s plugin changes the calculation for every block that has not been converted, because the fixed cost is already paid. That is an argument for converting the remaining bespoke scripts and it is an argument that depends on which plugins are installed, which is not a stable basis for a decision.