Choosing an htmx swap strategy for list and form updates
Learn how to pick the right htmx swap mode—innerHTML, outerHTML, afterbegin, beforeend, delete, or none—for updating lists or forms without a full page reload.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to pick the right htmx swap mode—innerHTML, outerHTML, afterbegin, beforeend, delete, or none—for updating lists or forms without a full page reload.
Alpine.js renders lists with x-for on <template> tags. Using a stable :key preserves DOM node identity—focus, transitions, input values—when arrays reorder. A worked example shows why index keys break and how to choose Alpine over a SPA for server-rendered pages with interactive pockets.
Behance separates lightweight metadata from heavy image files, uses lazy‑loading and CDN‑edge format switching to keep portfolios fast and high‑fidelity.
Learn how to safely expose only non‑secret configuration to the browser using Vite’s VITE_-prefixed environment variables, understand the trust boundary, and verify that no secrets leak into the built bundle.
Remix Server Actions let you mutate data directly from the client without exposing a separate API. This blog walks through a concrete example, highlights trade‑offs, and gives a step‑by‑step checklist for safe implementation.
Svelte's $: reactive statements turn derived state from an update-everywhere liability into a declare-once guarantee. Here's how they work, a working counter example, and the performance trade-off to watch.
Learn how Tailwind CSS arbitrary values let you inject any CSS utility directly in markup, see a responsive card example, and understand the trade‑offs of bypassing the design system.
Learn how Stylus transparent mixins let you write vendor‑prefix‑heavy CSS as a simple property, reducing boilerplate while keeping full language power.
MaterializeCSS 1.x ties its interactive components to jQuery 2.x/3.x, inflating bundles and widening attack surfaces. This guide explains the requirements, minimal design options, trust boundaries, operational checks, failure modes, and when to rethink the architecture.