Why I Still Use jQuery
jQuery remains a reasonable choice in 2025 for specific cases: maintaining legacy apps where rewrites cost more than they return, build-free prototypes loaded from a CDN, older embedded browsers like kiosks and intranets, simple chained animations, and servers that return HTML fragments, where `.load()` replaces fetch-plus-DOMParser boilerplate. It should be avoided in React/Vue-style component apps, where direct DOM changes bypass the virtual DOM and cause state bugs. It is also unnecessary for modern-browser-only projects, where native `querySelectorAll`, `fetch`, `classList` and `element.animate` cover its core features. Lighter alternatives such as Cash, Umbrella JS, Axios, delegate-it and GSAP can replace individual pieces.
Related posts
- The uphill climb of making diff lines performant
GitHub Engineering mediumAdeptGitHub rebuilt the React diff-line components in the pull request Files changed tab after large PRs pushed the JavaScript heap past 1 GB, DOM counts above 400,000 and INP to unusable levels. The v2 design cut per-line React components from eight to two, replaced per-line event handlers with a single top-level handler keyed on data attributes, and moved commenting and menu state into conditionally rendered children. It also confined useEffect to the file level and switched to O(1) Map-based lookups. On a 10,000-line split diff this cut rendered components by 74%, memory by about 50% and INP from ~450 ms to ~100 ms. For p95+ PRs, TanStack Virtual windowing gave a 10x heap and DOM reduction and 40–80 ms INP, supplemented by cheaper CSS selectors, GPU transforms, partial hydration and progressive diff loading.
- Mastering React’s Stable Values
Shopify Engineering mediumAdeptIn React, a stable value is one that keeps its identity across renders: state setters from useState/useReducer and refs from useRef are stable, while inline arrays, objects and anonymous functions are recreated on every render. Unstable values break hooks that take dependency lists (useEffect, useCallback, useMemo) and APIs like React Navigation's useFocusEffect, which will unsubscribe and resubscribe on every render unless its callback is wrapped in useCallback. Rendering an inline helper function as a JSX component makes React see a new component type each render, so it tears down and remounts the whole subtree, which is costly in React Native. The fixes are to call such helpers directly or define components at module scope, and to use useCallback selectively, mainly for props passed to React.memo components.
- Why We Switched From Webpack To Vite
Replit easyNoviceReplit rebuilt its React template on Vite instead of Create React App and Webpack, and it starts far faster: Vite was running before the old container had even booted the CRA files. Vite pre-bundles rarely changing dependencies with esbuild, which is written in Go and claimed to be 10-100x faster than JavaScript bundlers. It serves source code as native ES Modules so the browser does the bundling, and its hot module replacement invalidates only the affected modules, so update times stay constant as the app grows. Vue and vanilla JS templates are also available.
- Fresh 2.3: Zero JS by default, View Transitions, and Temporal support
Deno mediumAdeptFresh 2.3 now skips the client-entry bootstrap script entirely on pages that use no islands or partials, cutting static pages from roughly 5–9 KB gzipped JavaScript to zero with no configuration. It adds opt-in View Transitions wired into partial navigation, built-in WebSocket routes via app.ws() and ctx.upgrade(), CSP nonce and CIDR-based IP filter middleware, W3C traceparent injection for browser-side OpenTelemetry, Temporal types as island props, and trustProxy handling of X-Forwarded headers. Vite integration drops two Babel passes, fixes CJS and duplicate-Preact issues, and middleware chains are now precompiled at startup; upcoming work targets Vite 8 with Rolldown and build-time prerendering.
- What We Learned Migrating From Webpack to Vite
Neon mediumAdept
Neon moved its console, a set of SPAs whose HTML is rendered by a Go backend, from webpack to Vite. Because the backend generates the HTML, they built a ~150-line custom proxy on Vite's JS API and http-proxy that swaps production asset tags (marked with HTML comments) for Vite dev imports to enable HMR, while E2E tests bypass the proxy and use production bundles. Build time did not improve (20s to 22s) and cold dev page loads got slower (~1500 files), but the migration removed 17 direct dependencies, added HMR and unified config with Vitest and Storybook. Gotchas included the SWC React plugin panicking on syntax errors, CSS preload errors in production, entry-point name clashes with API routes, CSP adjustments for Vite's WebSocket and undefined process.env.