Recent stories
Each story's summary, with the places it was discussed.
Summaries are written by AI from the linked sources. Open the source for full context.
React 19's useActionState Showed Me Why Disabling My Submit Button Was Never Enough
Frontend · JavaScript · React
React 19's useActionState hook simplifies form submission by eliminating boilerplate and manually managed pending states.
Unlike custom implementations that fail to prevent multiple submissions on slow connections, useActionState queues actions sequentially and provides reliable pending status. This approach ensures robust form handling, prevents accidental duplicate requests, and promotes a cleaner, centralized pattern for managing form interactions.
In this submission for the Google AI Portfolio Challenge, software QA engineer Depa Panjie Purnama presents a unique, interactive portfolio experience built using Gemini 3 Pro and Google Antigravity.
Breaking away from traditional layouts, the project features a dark, immersive interface where visitors use a virtual torch to reveal content. The technical implementation is notable for its 'Zero Dependencies' approach, utilizing vanilla HTML, CSS, and JavaScript rather than heavy libraries like Three.js. Key highlights include a 60fps procedural fire simulation based on Perlin noise and fluid drag physics, glassmorphism UI effects, and a highly optimized Dockerized deployment on Google Cloud Run. The developer emphasizes high performance and intuitive UX, achieving near-perfect Lighthouse scores through lean, custom-coded Canvas 2D rendering.
A collection of 40 optical illusions created using only CSS and HTML on CodePen, exploring properties like color perception, motion, and geometric distortions.
The project includes classic effects such as Curvature Blindness and the Breathing Square, demonstrating how styling and animation can trick the human brain into seeing non-existent colors or movements.
The author introduces the CRAZY Roller Coaster Builder, an enhancement of a previous project built with React Three Fiber and Three.js.
This new version allows users to create extreme tracks with sheer cliffs, physics-defying loops, and underground segments by removing traditional input constraints. The developer details technical challenges like track twisting and loop alignment, solved by refactoring RollerCoaster.js logic. Furthermore, the project explores 3D implementations across various frameworks, comparing React and React Three Fiber with Vue.js (TresJS), Svelte (Threlte), and Angular, ultimately sharing insights on library overhead and framework complexity.
Users are experiencing a site loading failure due to disabled JavaScript, browser extensions, or network connectivity issues.
Browsers must have JavaScript enabled for essential functionality, and users are advised to check connections, disable ad blockers, or try a different browser to resolve the error.
Oskar Wickström introduces The Proportional Web, a responsive CSS stylesheet inspired by Robert Bringhurst's The Elements of Typographic Style.
It provides a clean, minimalist, and typographic-focused framework for prose-heavy web documents, utilizing rem units, semantic HTML5, and Alegreya fonts to ensure readability across devices.
Applying border-radius to nested elements like article and header causes color bleeding due to anti-aliasing during the composition process.
Transparent pixels at the edges blend with background colors before the final composite. Setting overflow: hidden on the parent container ensures correct clipping, preventing the visible white seam between header and article elements.
Firefox Local Mode, shipped in Firefox 153, maps custom https:// origins to local folders so developers can test web pages without an HTTP server, including Web APIs requiring Secure Contexts.
Each mapping provides an origin and absolute folder path, creating separate origins with dedicated storage and cookies. Mappings work only in Firefox while DevTools are open and can be managed in DevTools’ Options panel or through about:config preferences, including optional disabling.
The author argues against custom web implementations that override browser defaults, such as scrolling, navigation, and form controls.
Much like the 'don't roll your own crypto' rule, developers should leverage vetted browser capabilities to ensure accessibility, consistent user experience, and functionality, rather than burdening users with non-standard, often broken interfaces.
The `initial-scale=1.0` setting in HTML’s viewport meta tag was once needed to address zooming issues in older iOS and other browsers.
Modern browsers no longer require it, so responsive sites can use only `<meta name="viewport" content="width=device-width">`, reducing unnecessary bytes while preserving behavior.
This article explains how TCP congestion control, specifically the 'slow start' mechanism and congestion window, limits initial data transfer.
Because TCP starts with a small window, the first RTT typically delivers around 13 kB. Developers should optimize websites to deliver critical content within this initial threshold to ensure rapid page rendering.
sukr is a high-performance, minimal static site compiler written in Rust that follows the suckless philosophy by producing zero JavaScript output.
Unlike traditional static site generators that rely on heavy client-side runtimes, sukr handles complex content delivery during the build process. It utilizes Tree-sitter for sophisticated syntax highlighting with language injection support, renders LaTeX via KaTeX into static HTML to avoid large browser bundles, and compiles Mermaid diagrams into inline SVGs for instant loading. By leveraging Tera templates for flexibility without recompilation and offering monorepo support through specific configuration flags, sukr provides a streamlined workflow for developers seeking speed and simplicity in web deployment.
Artyom Bologov provides a practical guide for web developers and bloggers to eliminate the dreaded horizontal scrollbar on mobile viewports.
The article identifies four primary culprits: preformatted code blocks (<pre>), large images (<img>), complex tables (<table>), and long unbroken words. For code, setting 'overflow-x: auto' allows local scrolling. For images, applying 'max-width: 100%' prevents them from exceeding the container’s width. Tables can be wrapped in a scrollable div to manage overflow properly. Finally, the author suggests using the <wbr> tag or the 'word-break: break-word' CSS property to handle long strings, ensuring a cleaner and more accessible user experience on small screens.
Daniel Lemire explores the flexibility of the WHATWG URL specification regarding whitespace.
Browsers ignore ASCII tabs and newlines in standard URLs, though they trigger validation errors. Data URLs, including Base64-encoded images and SVG, offer even greater freedom, allowing various whitespace characters for improved readability without breaking functionality in modern web browsers.
The CSS Working Group resolved that controls using `appearance: base-…` should default to `cursor: pointer`, including buttons, selects, checkboxes, radios, and related inputs.
The proposed user-agent rule is overrideable because it lacks `!important`, so authors can choose `default` or another cursor. The decision distinguishes interactive controls from blank space, while acknowledging that buttons and links may ultimately deserve different cursors and that more cursor types are needed.
WebP has become practical after years of limited browser and software support.
Google announced it in 2010, but Photoshop lacked native support until 2022 and still omits it from key export tools. Pixelmator Pro now makes WebP easier to use, and recent examples show smaller files than JPEG or PNG at comparable visual quality. With AVIF already having baseline browser support and Chrome newly adding JPEG XL support, the author hopes these formats will become easier to use too.
Mastodon requires JavaScript to function properly in a web browser.
Alternatively, users are encouraged to utilize native desktop or mobile applications to access the platform.
Mastodon is a decentralized social networking platform that operates through a federated model, allowing users across different servers to communicate seamlessly.
To access the service via a web browser, users must ensure that JavaScript is enabled to facilitate the dynamic elements of the interface. For those who prefer a more integrated or resource-efficient experience, Mastodon encourages the use of native apps available for various operating systems. These applications often provide specialized features and better integration with mobile or desktop environments compared to the standard browser-based access.
Optimistic updates are corrosive because they tell users an operation succeeded before server verification, normalizing broken behavior and eroding trust when state later reverts.
Ben’s position distinguishes confirmed bookings, which require verification, from likes that may retry silently, while uncommitted posts should remain visibly pending. An alternative, instant intent, shows a switch pressed immediately, disables further clicks, blinks after 500 ms without a response, and waits for reconciled HTML from the server, which Datastar morphs in place.
Enabling JavaScript is mandatory for the proper functionality of this website.
Disabling it may prevent certain features from loading or cause the page to display incorrectly, as JavaScript is essential for modern web interactivity and dynamic content rendering.