Topic · 6 items
JavaScript
This page gathers Preload's news on JavaScript: what the language, browsers and build tools change for your sites. I mainly follow the JavaScript you ship to visitors, its weight, how it loads and its browser-specific pitfalls. It's for front-end developers and integrators who want fast, resilient pages.
Follow this topic By RSS, in your feed reader
Safari: one failed modulepreload can break a page until the next tab
A Safari visitor can stay stuck on a page after a single transient error (a 404, a CDN incident, a dropped request): in WebKit, a <link rel="modulepreload"> that fails stays recorded as loaded, and a later import() of the same URL rejects without retrying the request, even once the file is back. WebKit fixed it in Safari Technology Preview 255, released October 22; Safari 27.2, shipped October 26, doesn't mention the fix. Sites split into preloaded JavaScript modules, as many build tools produce, are exposed.
Next step
Test the failure path: make a module fail to load once, restore it, then check that a new request goes out. Add a bounded retry on the same URL (no random query parameter, which would create a separate module), and make sure your CDN and service worker don't keep serving the failed response.
In our October 28 test, the rejection survived a tab reload in Playwright's WebKit 27.2, while Chrome 156 and Firefox 157 retried the request: only a new tab unblocked the page.
The JavaScript cost of letting an AI agent pick the framework
Letting an AI agent choose a site's architecture can blow your JavaScript budget. Nolan Lawson had Claude Code build the same app, a content-heavy catalog with little interactivity, in 12 frameworks, five times each: median client JavaScript ranged from 0 KB with Astro to 142 KB with Next.js, and median LCP measured by Lighthouse from 810 ms to 2,090 ms. Agents often built a single-page app (SPA) even when nothing called for one: the agent building the no-framework version did so five times out of five.
Next step
Spell out the expected architecture (server rendering, separate pages) and a JavaScript budget in your agent's instructions, then measure the result in Lighthouse or the Network tab. On a Next.js 16.4 project, the next-bundle-optimizer skill, released the same day by the Next.js team, helps an agent find JavaScript that loads for nothing.
The SPA bias is real, while a content site only needs a few kilobytes of JavaScript. As the author himself points out, with a single model tested, this benchmark is one data point, not a verdict.
Node.js: security releases on October 21, Node 26 goes LTS on the 28th
The 26.x, 24.x and 22.x lines get security fixes on Wednesday, October 21, with a highest severity of high; details will be published with the releases. The schedule moves at the same time: Node 24 enters maintenance on October 20 and Node 26 becomes Active LTS on the 28th, while Node 22 stays supported until April 30, 2027.
Next step
Book a slot on October 21 to update servers, Docker images and CI, then plan the move to Node 26 for projects still on 22.
Page Parkour
Hakim El Hattab follows up on Page Commando: this time the page becomes a 3D city you run through as a ninja. Only text blocks, media and visible containers (background, border, shadow, image) turn into volumes, each sitting on its container's base, so the stacking shows how visible boxes are nested, not the raw DOM depth. No dependencies: CSS 3D transforms, 2D canvas, WebGL for the sky only, and Web Audio.
Next step
Run it on your templates to spot stacked boxes at a glance, as a bookmarklet or an unpacked Chrome extension (the bookmarklet is blocked by GitHub's and X's CSP). For actual DOM size, Lighthouse remains the reference.
Bootstrap 6 goes alpha
The framework many had written off as dead released the first alpha of version 6 on October 8. JavaScript is now ESM only (no more window.bootstrap) and written in TypeScript, Sass moves to @use, and customization relies on CSS variables organized in cascade layers. Responsive classes change shape (.d-md-none becomes .md:d-none) and Offcanvas becomes Drawer, built on <dialog>. Minimum browsers: Chrome and Edge 130, Firefox 132, Safari 18. Version 5 is still supported, with a 5.4 release planned.
Next step
On legacy projects, move to 5.3 first, which drops jQuery without a redesign; read the v6 migration guide, but wait for the stable release before going to production.
Page Commando
Hakim El Hattab turns any web page into a platform game: every line of text becomes solid ground, physics runs on matter.js and sound on Web Audio. It all renders inside a Shadow DOM reset with all: initial, without breaking the page underneath.
Next step
Play a round, then open page-commando.js: it is a great reading exercise on TreeWalker, Range.getClientRects() and Shadow DOM, all Baseline widely available.