
Why Yesterday's Best Practice Gets Deprecated
Untouched code does not stay correct — it drifts as the platform moves. Why best practices expire, how the platform removes behavior, and how to turn drift into scheduled work.
TL;DR: A web codebase nobody touches does not stay correct — it drifts, because the platform keeps moving and standing still is itself a form of decay. Deprecation is not bad luck; in Chromium and Gecko it follows a documented process — an intent, deprecation warnings in developer tools, sometimes a deprecation trial, then removal, though Chromium allows exceptions such as immediate removal for a compelling reason or deprecation without a removal deadline — and a team that reads those signals converts removal into scheduled migration instead of a production incident. This explains why best practices expire, how the platform actually removes behavior, and how to turn drift into planned work.
The stability illusion
An unstated assumption is easy to carry: code that worked when it shipped, and that nobody has edited since, is still correct. The deploy succeeded, the tests are green, the page renders. Nothing has changed in the repository — so, the reasoning goes, nothing can be wrong.
That assumption is false on a platform that does not hold still. The web is not a fixed target you build against once; it is a moving set of specifications and implementations that keep advancing whether or not your code advances with them. When the ground moves and the object stays bolted in place, the object is no longer where it should be. Standing still is not staying correct. Standing still is drift.
The illusion is sticky for a specific, mechanical reason: your test suite measures your code against your own expectations, not against the platform's current contract. Continuous integration goes green when the code still does what you told it to do — it does not go red when a specification changes a normative behavior, when an engine schedules a removal, or when the reasoning behind a pattern quietly expires. There is no failing assertion for "the platform moved." The only signal is the one you go and read.
Consider the most ordinary version of this. A normative algorithm in a specification is tightened so that an edge case which used to be permissive now throws, or coerces differently, or orders results differently. Your code never called that edge case wrong by its own standard — and your tests assert the behavior you intended, not the behavior the platform now guarantees. The engines ship the new algorithm. Your suite stays green because nothing in it was ever pointed at the gap between your intent and the platform's contract. The drift is real, it is in production, and there is no red build anywhere that names it. That is the shape standards drift tends to take: invisible precisely because the only instrument that would catch it is a deliberate reading you did not schedule.
This is the same logic the security side of this work applies to threat posture: a site left alone does not stay safe, it quietly slides out of the safe set as the environment moves around it. The mechanism here is the standards-alignment version of that same idea. A codebase left alone does not stay aligned with the platform; it slides out of alignment as the specifications and engines move underneath it. The cost of that drift is the cost of not reading the process that produces it — the defined pipeline of stages, owners, and signals that the rest of this work maps in detail. Drift is not an accident that befalls careless teams. It is the default outcome of treating the platform as static.
Why best practices expire
A best practice is not a timeless truth. It is a compressed answer to a question asked under specific constraints: the primitives that existed at the time, the bugs that were common, the security understanding of the moment, and the shape of the specification as it then stood. The practice encodes those constraints inside itself. When the constraints change, the reasoning that justified the practice can quietly evaporate while the practice itself keeps getting copied forward.
Three technical mechanisms retire practices. The first is a new primitive. A practice that exists only to work around a missing capability becomes dead weight the moment the platform ships that capability natively — the workaround still functions, but it is now slower, more fragile, and more code than the primitive that erased its entire reason to exist. The second is a reversal. A pattern once recommended can become actively discouraged after a security finding or an interoperability problem shows it to be unsafe or unsound; here the practice does not merely become suboptimal, it becomes wrong, and continuing to follow it is now the bug rather than the fix. The third is a specification change itself: a living standard can adjust a normative algorithm, tighten a previously loose behavior, or redefine an edge case, so that code which was conformant against the old text is non-conformant against the new — without a single line of that code being touched.
There is a fourth mechanism that is cultural rather than technical, and it is the reason expired practices survive so long. Practices propagate through tutorials, copied snippets, project scaffolds, starter templates, and lint rules. The constraint that justified the practice can expire quickly; the practice can still be installed by a generator and enforced by a rule long afterward, because it has been institutionalized in tooling that nobody re-derives. The practice outlives its reason not because anyone decided it should, but because no one asked the question "is the constraint that produced this still true?"
The important point is not any single example — examples date themselves, and the specific cases are not the lesson. The lesson is structural. A practice is a function of its moment, and the moment is not permanent. Treating a practice as permanent is the stability illusion wearing a different costume: the same belief that something correct once is correct forever, applied to guidance instead of to code.
How the platform actually removes things
Here is the part that is easy to get wrong: teams experience a removal as sudden, conclude that the platform is capricious, and treat each deprecation as a fresh piece of bad luck. It is not capricious, and it is not luck. Removal is normally the end of an ordered, public process, and a team surprised by it may simply not have been reading the earlier stages.
Chromium and Gecko document a defined process for retiring behavior. Chromium's Blink launching and removal process makes the steps explicit: measuring how much of the web still uses the behavior, coordinating the removal with other engines that also support the feature, an Intent to Deprecate and Remove that needs approval from the API owners, a deprecation issue that warns developers in DevTools ahead of removal, and only then the removal itself — sometimes with an optional deprecation trial that lets developers of affected sites request a token to re-enable the old behavior for a limited period while they migrate. Chromium can extend such a trial repeatedly while significant progress toward removing the need for it is shown; if that progress cannot be shown, the API has to be un-deprecated. Several of those steps leave a public record — the blink-dev intent thread, the ChromeStatus entry with its target milestone — and they normally precede the removal, although Chromium allows immediate removal for a specific, compelling reason and, as a strongly discouraged exception, deprecation without a removal deadline.
The signals are also machine-readable, which matters because of an attention asymmetry. A console warning is seen by whoever happens to have developer tools open on the affected path — which may be no one on the team. Deprecation reports narrow that gap. In browsers that generate them — Chromium-based browsers and, partially, Firefox, but not Safari (as of Oct 2026, MDN browser compatibility data) — the browser sends reports for the deprecations its vendor has added warnings for to the reporting endpoint named "default", if you define one, where your own monitoring can collect them server-side. For the traffic those browsers carry, that turns "is anything we ship on a removal path" from a question that depends on someone noticing a warning into a question your infrastructure can answer continuously.
The specifications move on an ordered process too, and they are a second surface worth reading because the spec sometimes changes before the engines do. A WHATWG living standard changes continuously under a documented working mode, with proposals, issues, and normative changes visible as they happen rather than announced after the fact. The W3C Process Document defines how a Recommendation is superseded or obsoleted, so a standard does not simply vanish — it is moved through a stage with a trail. Sometimes the spec adjusts a behavior first and engines follow; sometimes an engine signals a removal ahead of full spec consensus. Reading only one of the two surfaces means meeting the other one late.
Reading the process well also means reading state, not just events, because deprecation is not one status — it is several, and they carry very different urgency. "Discouraged but fully supported" is a guidance change with no removal date: the behavior works, the practice is just no longer the recommended one. "Deprecated with an announced removal" is a clock that has started, with a planned window and possibly a deprecation trial — though the date can move and a deprecation can be reversed. "Removed" is the behavior already gone in some engine versions and still present in others, which is the messiest state because it fails for a subset of your users while looking fine to you. Teams that collapse all three into the single word "deprecated" either panic at guidance changes or ignore real clocks; the skill is to read which state a behavior is actually in and let that, not the alarming word, set the priority.
The vendor status dashboards and standards positions that another part of this work covers in depth are part of this same readable surface, not a separate magic. The composite picture across these surfaces points the same way: removals are normally preceded by public signals — in Chromium, a deprecation period of at least one milestone unless there is a specific, compelling reason to remove a feature immediately. Outside such exceptions, a removal feels sudden to a team that meets the process for the first time at the moment something breaks.
Turning drift into scheduled work
The difference between a deprecation that is a calm migration and a deprecation that is a 2 a.m. incident is not luck. It is the watch. The same notice — an intent, a console warning, a collected deprecation report — read early is a planned piece of work with a deadline you chose; read late, after removal, it is an outage you did not choose. The signal was identical in both cases. Only the reading time differed.
That difference is also where the cost lives, and the economics are worth stating plainly. A scheduled migration is cheap because you control the variables: you pick the time, batch the change with related work, test it under normal conditions, and ship it through the usual review. An incident migration is expensive because every one of those variables is taken away from you — it is unplanned, urgent, done under pressure, and reviewed badly because there is no time. The two pieces of work are the same diff. Much of the cost difference comes from lead time, and lead time depends on whether anyone was watching.
The cost can grow faster than the number of skipped deprecations, because ignored deprecations compound. Each one you skip does not sit still and wait politely; it raises the floor under the next migration. A workaround you kept past its expiry is now load-bearing for the next workaround written on top of it, so when the platform finally removes the base, you are not migrating one thing — you are unwinding a stack that grew precisely because nobody read the first signal. This is why "we never have time for platform work" can be a description of compounding, not of scarcity: the team is paying interest on deprecations it declined to schedule, and the interest is what crowds out the time. The way out is not heroics. It is to start reading early enough that the next migration is one item instead of an excavation.
So the practical move is not "rewrite everything constantly." That is just churn wearing the costume of diligence, and it produces its own breakage while pretending to prevent it. The move is to build the expectation of expiry into how you architect. Prefer primitives on a stable trajectory over clever workarounds whose entire existence is a bet that a platform gap stays open. When you do depend on something volatile, isolate it so that its eventual removal is a contained, scheduled swap rather than a load-bearing surprise — the isolation is what turns a future removal from a rewrite into a contained change. The discipline of treating a volatile dependency as explicitly volatile, of sizing that bet honestly before you take it, and of judging how mature a feature actually is before you lean on it, are their own subjects that the rest of this work develops; here the point is narrower. The point of reading the platform is not anxiety, and it is not constant motion. It is that drift becomes a backlog item with a date instead of an incident with a postmortem.
Diagnostic checklist for the next planning cycle
- List the platform behaviors your codebase depends on that exist only as workarounds for once-missing capabilities — these are the practices most likely already past their moment.
- Wire deprecation reports from the browsers that send them into the monitoring your team already reads, so "are we on a removal path" depends less on someone noticing a console warning.
- Subscribe a named person to one engine's intent-to-deprecate stream, so an early signal reaches a human before the console warning, not after the removal.
- For each volatile dependency, write the single sentence that says how it is isolated and what the swap looks like — if you cannot write that sentence, that is the drift you have not scheduled yet.
- Reframe the next deprecation notice your team receives as a dated backlog item the day it arrives, not the day the behavior is removed.