Preload by Agence Web Performance

Topic · 6 items

CSS

This page gathers Preload's news on CSS: properties landing in browsers, their Baseline status and the JavaScript they let you drop. I follow what becomes usable everywhere, with the step to adopt it without breaking older browsers. It's for integrators and front-end developers.

Follow this topic By RSS, in your feed reader

Preload #04 ·

CSS-Tricks is independent again

One of the go-to front-end resources has changed hands: Geoff Graham, who has written for CSS-Tricks for twelve years, is buying the site from DigitalOcean, its owner since 2022, he announced on October 26. The site will run on direct advertising, memberships and a shop, with a beginner HTML and CSS course in the works. The newsletter returns on November 10, with one or two articles a week, and guest posts are open again, AI-generated content excluded.

Next step

If you have a CSS lesson learned worth sharing, now is the time to pitch a guest post; otherwise, subscribe to the newsletter before it restarts on November 10.

Read the source

Preload #03 ·

CSS scroll-driven animations become Baseline with Firefox 159

From October 27, you can tie a CSS animation to scrolling in every major browser, without JavaScript: Firefox 159 turns on scroll-driven animations by default, already available in Chrome 115 and Safari 26. The animation-timeline property, with the scroll() function (a container's scroll progress) and the view() function (an element's position in the visible area), plus the animation-range property, cover reveal-on-scroll, reading progress bars and parallax, which used to rely on AOS, GSAP ScrollTrigger or hand-written scroll listeners.

Baseline, newly available: Chrome 115, Safari 26, Firefox 159

Next step

Find the scroll effects still driven by JavaScript and rewrite them with animation-timeline, animating only transform and opacity, which stay off the main thread. Turn them off under prefers-reduced-motion and keep them as a progressive enhancement, for instance inside an @supports (animation-timeline: view()) block, so older browsers show the content without the effect.

This is a good time to drop a JavaScript library that ships on many brochure sites, and get a smoother effect that frees up the main thread.

Read the source

Preload #02 ·

:buffering, :playing, :paused: Chrome plans media pseudo-classes for version 158

Safari since 15.4 and Firefox since 150 let you style a <video> or <audio> element by its state: :playing, :paused, :seeking, :buffering, :stalled, :muted and :volume-locked. Chrome has published its intent to ship them and targets version 158, due in stable on November 17, with Edge to follow. If the schedule holds, the group will then become Baseline.

Partial support: Safari 15.4, Firefox 150, Chrome 158 planned

Next step

Show a video player's loading indicator with video:buffering instead of JavaScript waiting and playing listeners, and keep the script as a fallback for Chrome until 158.

Less JavaScript for a state the browser already knows. You can ship this as a progressive enhancement today, without waiting for Chrome.

Read the source

Preload #02 ·

GenerateBlocks grows into a full site builder for WordPress

With GenerateBlocks 2.5, released October 13, and GenerateBlocks Pro 2.8, GeneratePress's block plugin gets redesigned dashboards and a reworked Styles Builder, built around the Pro version's Design Tokens, Global Styles and Design Systems. The shift caps eighteen months of additions that each replace a third-party plugin: overlay panels, display conditions, forms, editor access control.

Under the hood, 2.5 now always inlines the page's block CSS and removes the setting that let you serve it as a file.

Next step

Set up tokens and global styles first, then use local styles for the exceptions. After updating, check how much inline CSS your heaviest templates now carry.

This is how Unblock, the competing editor released in beta this spring, already works: selectors, queries and variables saved once for the whole site, then reused everywhere. We think it's the right approach: each value changes in one place only, shared styles live in a shared stylesheet instead of being repeated block by block, and GenerateBlocks gets there by building on its existing behavior, with nothing for existing sites to relearn.

Read the source

Preload #02 ·

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.

Read the source

Preload #01 ·

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.

Read the source

Eroan Boyer
Founder of Agence Web Performance

What comes next, Tuesday morning.

Items on this topic land in Preload every week, two weeks before they go public. Free, one-click unsubscribe.