CSS Wrapped 2025
Chrome 135 introduces Invoker Commands, allowing buttons to perform actions on dialogs and popovers declaratively using commandfor and command attributes, eliminating the need for JavaScript onclick handlers. The feature supports built-in commands like show-modal, close, and toggle-popover that mirror their JavaScript counterparts, plus custom commands prefixed with double dashes that can be handled via the toggle event. A polyfill is available for broader browser support.
❤7👍1🔥1
Better than JSON
Protocol Buffers (Protobuf) offers significant advantages over JSON for API development through strong typing, binary serialization, and automatic code generation. While JSON remains popular for its human readability and flexibility, Protobuf provides 3x smaller payload sizes, type safety across multiple languages, and eliminates manual validation errors. The article demonstrates practical implementation using Dart and the Shelf framework, showing how Protobuf can be used independently of gRPC in traditional HTTP APIs. The main trade-off is reduced human readability of binary data, requiring schema files and specialized tooling for debugging.
👍3