How Baseline Can Help You Ship Less JavaScript

2026年8月7日

Most of us install a dependency once and never look at it again. It does its job, the tests pass, and we move on. But the web platform keeps moving too, and a surprising number of the libraries sitting in your package.json today are now built into the browser.

In a typical mid-sized JavaScript app, you can often find somewhere between 60KB and 90KB (minified and gzipped) of dependencies that the platform can now handle on its own. Date and number formatting, HTTP requests, modals, tooltips, deep cloning, grouping arrays: these were all real gaps a few years ago. A lot of them aren’t gaps anymore.

The reason those libraries stick around isn’t laziness. It’s that most teams don’t re-audit their dependencies on a Baseline cadence, or are simply not aware of how fast browsers are shipping these days. You check npm audit for security, but is this library still doing something the browser can’t? is a question that rarely gets asked. So the libraries stay.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Smashing Magazine

Building A Personal Cross-Browser Testing Checklist From Hard-Won Mistakes

This article is a sponsored by TestMu AI Pass the string "10-03-2024" to new Date(), and the answer is browser-dependent. Chrome, Edge, and Firefox all return 3rd October 2024 with no warning. Safari returns Invalid Date. A user in Berlin w

A Little Magic In December’s Hustle (2026 Wallpapers Edition)

As the year draws to a close, many of us are busy meeting deadlines, wrapping up projects, or getting ready for the holiday season. So why not take a moment amid the end-of-year hustle to set the mood for December? Our new collection of des

Meet AI 2027 Conference (Dec 1)

AI is changing how we design and build, and it isn’t slowing down. On December 1, 2026, SmashingConf is hosting the AI 2027 Conference, a live online half day event to take stock of where AI stands today, what we can expect in 2027, and whe

AI Sped Up The Build: How Can Accessibility Testing Keep Up?

This article is a sponsored by Level Access Lately, I’ve been thinking and writing a lot about what AI is doing to product development, and what that means for accessibility. The thing that has my wheels turning is a finding from Level Acce

Should You Actually Add AI To That? A Four-Question Audit For Product Teams

A product team at a large health insurer wants to add AI that writes the full written determination for benefits appeals specialists. The technology works as specified. However, the specialists stop using it, and the ones who keep using it