The purpose of this github is to create a place to collaborate between browser vendors (and web developers) on various intervention experiments.
What are interventions?
Over the course of its existence, the web has accumulated a multitude of standards and common patterns. While most of these are beneficial for both developers and users, if abused (intentionally or otherwise) web APIs can sometimes be a detriment to user experience.
An intervention is when a user agent decides to deviate slightly from a standardized behavior in order to provide a greatly enhanced user experience. Because of its nature, it must be done sparingly and with extreme prudence.
Interventions vs. Other Web Platform Changes
An intervention is a specific type of change to the web platform.
- Breaks long-standing web behavior in as minimal a way as possible.
- Directly benefits the user in a substantial way.
- Likely has an opt-out. Will err on the side of giving opt outs, but some rare cases may not need them.
Proposing an intervention
This github exists to allow collaborative brainstorming, and to share knowledge about what does and does not work. As such, we encourage everyone to propose interventions that could have big UX impact.
To propose a new intervention, just create a new github issue. Be sure to include exactly how and when the intervention will occur, and why it is an obvious user benefit.
Intervention design guidelines
Interventions that are well-designed to balance the concerns of the user with the concerns of the web developer tend to have the following properties:
- Predictable: A developer can anticipate when their code will be impacted by an intervention, and what the resulting behavior will be.
- Avoidable: Developers following documented best practices shouldn't be impacted by the intervention.
- Transparent: A developer should be able to tell that an intervention has been hit. For example, a console message should be generated in the developer tools with a link to details about the intervention and how to avoid it, and some sort of detection or reporting should be available in the wild.
- Justified by data: As part of designing and shipping an intervention, the browser should collect statistics from the wild that attempt to quantify both the benefit of the intervention and the potential cost in order to help find a good tradeoff. Once the intervention has shipped, the browser should continue to collect statistics on how often it is triggering and what benefits it's providing.
In order to design an intervention that meets these properties it's sometimes necessary to first standardize and ship new API surface area. For example in order to ignore touch listeners to improve scrolling we had to first define an API for passive event listeners.
Discussion of interventions
There are currently no plans to have in-person meetings about this and discussion should happen primarily via github issues. Every intervention which ships in Chrome will have a discussion thread on blink-dev where comments from the public are welcomed. If you develop a website which you believe is negatively impacted by an intervention in Chrome then please file a chromium bug. Other questions/concerns can be discussed on firstname.lastname@example.org.
For history and more details on the thinking here within the Chrome team, see: