Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Headless CMS Frontend Frameworks

If you want to pick a frontend framework for a headless CMS website, this covers the SPA and MPA options I'd consider and when each one fits. Download the one-page framework comparison (PDF) On a traditional CMS like standard WordPress or Drupal, the frontend is mostly a skin. The CMS owns URL routing, database queries, HTML assembly and page delivery out of the box, and developers style theme…

When considering a frontend framework for a headless CMS website, teams often gravitate towards single-page application (SPA) options like Next.js, even on content-focused sites. This article covers the two primary options: SPA and MPA (multi-page application) architectures, along with their respective strengths and weaknesses.

SPA architectures are characterized by a full-page load that hydrates the page in the browser with a JavaScript runtime bundle. Subsequent clicks load JSON or component payloads, swap the page contents in memory, and update the address bar using the History API. While SPAs offer instant page transitions, instant persistence across page navigations, and access to a vast ecosystem of third-party components, they come with performance drawbacks.

The "hydration tax" leads to higher Interaction to Next Paint (INP) and Time to Interactive scores, while duplicated complexity in routing, state management, auth checks, and analytics tracking can cause memory leaks and ad/analytics issues.

In contrast, MPA architectures work in line with the traditional web model, where each URL is a standalone HTML document, and JavaScript only loads on the pages or widgets that need it. A click on an a link triggers a normal browser navigation to a fresh HTML document, served statically from a CDN or rendered at the edge. This approach provides instant page transitions with no hydration or minimal JavaScript, leading to superior Core Web Vitals and reliable analytics, ad, and accessibility performance.

However, maintaining continuous client-side UI state across page loads can be challenging and may require deliberate workarounds or hybrid islands.

Rewritten by urgent.news; may contain errors — check the original.

Read the original at dev.to →

Report a problem with this story

More in Tech

Test 4.20 MHz Ultrasonic Protein Fibril Alignment in 48 Hours for $385 — Zero Microbes Required (Open-Source MRL-2 Bench Protocol)

Most discussions around synthetic biology or alternative protein biomanufacturing assume you need a sterile BSL-1 fermenter, a gas-diffusion electrolyzer, and weeks of strain engineering before you…

  • 48-hour, $385 bench protocol developed for testing ultrasonic protein fibril alignment
  • 4.20 MHz ultrasonic standing-wave cavity used to align dense protein suspensions
  • Open-source protocol invites hardware and physics builders to test and improve design

Next.js Hosting for Headless CMS

If you want to use Next.js as the frontend for a headless CMS, this covers where to host it and what each option costs you in money and DevOps effort.

  • Next.js can run on any environment with Node.js support.
  • Managed and edge platforms like Vercel handle VM patching and CDN routing.
  • Cloudflare Workers offer global edge scale without VM management.

Private Browser File Uploads: Object Storage Service and 3-Stage Throughput

Short answer: for a marketplace accepting private browser uploads, the least complex design is a direct-to-object-storage upload followed by backend processing and an expiring download URL.

  • Private browser uploads use object storage service for direct upload
  • Three file sizes tested: 25 MB, 250 MB, 2 GB with 1, 10, 50 concurrent uploads
  • S3 recommended for ecosystem, but R2, GCS, Infrai viable alternatives

Advice for the next 100 Rust GUIs

  • Rust GUI landscape has expanded with two dozen toolkits announced
  • Performance issues persist in cross-platform GUI applications
  • GPUI framework enables high-performance Rust UI in real-world apps

More from Saturday 21 November →