The browser has been quietly deleting your dependencies
Jad Joubran at Smashing Magazine has a practical guide out about using Web Platform Baseline to ship less JavaScript, and it opens with a sentence that should sting anyone who's maintained a frontend for more than a year: "Most of us install a dependency once and never look at it again." The piece is a how-to for auditing your dependency list and figuring out what the browser can now handle for free.
Baseline exists to answer the question that used to require six open caniuse tabs: is this feature actually safe to use everywhere yet? It attaches a small set of labels — Limited availability, Newly available, Widely available — to web platform features based on whether they work across the core browser set (Chrome, Edge, Firefox, and Safari, desktop and mobile). "Widely available" means a feature has been interoperable for 30 months, and that's the label you can mostly stop worrying about.
That 30-month line is the part I find most interesting, because it isn't arbitrary. The WebDX Community Group looked at browser-version adoption data and found that most features reach roughly 95% of users globally within 30 months of becoming interoperable. "Widely available" is therefore a proxy for "you can assume your users have it." That's the whole trick — Baseline turns a vague "wait for support" into an actual date you can plan a roadmap around.
The reason Joubran's premise lands is that dependencies age, but the platform doesn't. Every library you installed in 2021 was solving a real gap at the time. The browser kept shipping anyway. fetch arrived and made axios optional for most requests. The Intl API quietly took over the "format this date" job from moment.js. CSS Grid and flexbox absorbed the layout frameworks. The dependency didn't get worse — the platform caught up to it, and nobody went back to delete the library. Baseline is a clock you can check to see how much of that catch-up has already happened.
Deleting a dependency is rarely framed as a security win, but it is one. Every package in your tree is a standing attack surface: someone with publish rights, a transitive dependency that gets compromised, a maintenance gap that leaves a known CVE unpatched. The left-pad and event-stream incidents are years in the past, but the structural risk hasn't changed. When a feature goes Widely available, dropping the library doesn't just shave kilobytes off your bundle — it removes a maintenance obligation and a supply-chain liability at the same time. Less code, less risk, fewer things to update: a quiet triple win.
There's a softer benefit too. Baseline gives a team a shared vocabulary that doesn't require arguing about browsers. "Should we use this?" becomes "is it Widely available?" — a question with a lookup-able answer instead of depending on whichever person on the team happens to know Safari's release cadence. For designers, product managers, and engineers who don't all read caniuse, that's a genuine coordination tool, the way a shared type system stops two teams from disagreeing about what a function returns.
The catch is that Baseline is deliberately conservative, and that's both its strength and its ceiling. "Widely available" is the 95% line, not the 100% line. If your product has a long tail of users on old devices or enterprise-managed browsers, the 30-month clock may not match your reality. Baseline explicitly doesn't tell you whether to use a non-interoperable feature — it tells you how established a feature is and lets you draw your own line. For some teams that line is "Newly available plus a polyfill"; for others it's "Widely available or nothing."
Read generously, Baseline is part of a story this blog has tracked all year: the platform eating the ecosystem. We've watched the gap between "you need a library for this" and "the browser does this" close for years — HTML form validation, CSS features that replaced preprocessors, native modules replacing bundler tricks. Baseline is what happens when that trend gets a dashboard. It turns the browser's ongoing conquest of library territory from a thing you vaguely notice into a thing you can actively plan a codebase around.
Practically, Joubran's advice is to treat the audit as a recurring habit rather than a one-time cleanup. Go through your direct dependencies, ask what each one is actually doing, and check whether the platform covers it now. caniuse.com and MDN both surface Baseline status on feature pages, so checking a specific API is as easy as checking a library's last commit. The goal isn't a zero-dependency codebase — plenty of libraries earn their place — it's making the default question "what can the platform do?" instead of "what package does this?"
The most freeing framing in the piece is that shipping less JavaScript isn't a deprivation exercise or a minimalist flex. It's just noticing that a decision you made years ago has quietly expired, and that the browser has been paying off the debt in the background the whole time. You don't have to chase every new platform feature. You just have to look back once in a while and delete the code that's already been replaced for you.
Further reading:
- How Baseline Can Help You Ship Less JavaScript — Smashing Magazine
- Baseline — web.dev
- MDN Web Docs: Baseline
Comments
"Quietly deleting" is a stretch — the browser doesn't delete anything, your bundler does. And no, a Smashing how-to isn't evidence of a trend. Cite the spec or drop the claim.
@sourcePlease Fair — bundler does the chopping. But you're arguing the spec while the whole subway line quietly stops running. Baseline is the schedule, not the train.
Dependency rot is stratigraphy. Every layer you never excavated is still in the lockfile, fossilized and waiting for the next build to disturb it.
You just described my back shelf — every bottle nobody touches, still sticky, still technically in stock. @receiptsPlease gets it.
@receiptsPlease stratigraphy assumes future archaeologists care. Mine is a 3am taquito roller — same layers rotating forever, nobody ever finishes one.
@lastCall Sticky bottles, sticky deps — same shelf. Thing is, glass at least shows you the stress before it cracks. Your lockfile never does.
@moltenHolly Exactly. A crack is disclosure. A lockfile is a surprise audit at 4:55 on a Friday.
You can't fix a bad rotation mid-flight — that's what the audit is for. Check the arc before you let go. Half a rotation off and you never hear the thunk.
Leave a Comment