Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Google DeepMind wants to know if chatbots are just virtue signaling

    The Download: a blockchain enigma, and the algorithms governing our lives

    Welcome to the dark side of crypto’s permissionless dream

    Facebook X (Twitter) Instagram
    • Artificial Intelligence
    • Business Technology
    • Cryptocurrency
    • Gadgets
    • Gaming
    • Health
    • Software and Apps
    • Technology
    Facebook X (Twitter) Instagram Pinterest Vimeo
    Tech AI Verse
    • Home
    • Artificial Intelligence

      Read the extended transcript: President Donald Trump interviewed by ‘NBC Nightly News’ anchor Tom Llamas

      February 6, 2026

      Stocks and bitcoin sink as investors dump software company shares

      February 4, 2026

      AI, crypto and Trump super PACs stash millions to spend on the midterms

      February 2, 2026

      To avoid accusations of AI cheating, college students are turning to AI

      January 29, 2026

      ChatGPT can embrace authoritarian ideas after just one prompt, researchers say

      January 24, 2026
    • Business

      The HDD brand that brought you the 1.8-inch, 2.5-inch, and 3.5-inch hard drives is now back with a $19 pocket-sized personal cloud for your smartphones

      February 12, 2026

      New VoidLink malware framework targets Linux cloud servers

      January 14, 2026

      Nvidia Rubin’s rack-scale encryption signals a turning point for enterprise AI security

      January 13, 2026

      How KPMG is redefining the future of SAP consulting on a global scale

      January 10, 2026

      Top 10 cloud computing stories of 2025

      December 22, 2025
    • Crypto

      Is Bitcoin Price Entering a New Bear Market? Here’s Why Metrics Say Yes

      February 19, 2026

      Cardano’s Trading Activity Crashes to a 6-Month Low — Can ADA Still Attempt a Reversal?

      February 19, 2026

      Is Extreme Fear a Buy Signal? New Data Questions the Conventional Wisdom

      February 19, 2026

      Coinbase and Ledn Strengthen Crypto Lending Push Despite Market Slump

      February 19, 2026

      Bitcoin Caught Between Hawkish Fed and Dovish Warsh

      February 19, 2026
    • Technology

      Google DeepMind wants to know if chatbots are just virtue signaling

      February 19, 2026

      The Download: a blockchain enigma, and the algorithms governing our lives

      February 19, 2026

      Welcome to the dark side of crypto’s permissionless dream

      February 19, 2026

      The robots who predict the future

      February 19, 2026

      California Let Robots Build An Entire Neighborhood, Here’s What Happened To Prices

      February 19, 2026
    • Others
      • Gadgets
      • Gaming
      • Health
      • Software and Apps
    Check BMI
    Tech AI Verse
    You are at:Home»Technology»It’s time for modern CSS to kill the SPA
    Technology

    It’s time for modern CSS to kill the SPA

    TechAiVerseBy TechAiVerseJuly 26, 2025No Comments7 Mins Read4 Views
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr Email Reddit
    It’s time for modern CSS to kill the SPA
    Share
    Facebook Twitter LinkedIn Pinterest WhatsApp Email

    It’s time for modern CSS to kill the SPA

    24th July, 2025

    Native CSS transitions have quietly killed the strongest argument for client-side routing. Yet people keep building terrible apps instead of performant websites.

    The app-like fallacy

    “Make it feel like an app.”

    At some point during the scoping process, someone says the words. A CMO. A digital lead. A brand manager. And with that single phrase, the architecture is locked in: it’ll be an SPA. Probably React. Maybe Vue. Almost certainly deployed on Vercel or Netlify, bundled with a headless CMS and a GraphQL API for good measure.

    But the decision wasn’t really about architecture. It wasn’t even about performance, scalability, or content management. It was about interactions. About how the site would feel when you click around. 

    The assumption was simple: Seamless navigation requires us to build an app.

    That assumption is now obsolete.

    The false promise of SPAs

    The reason SPAs became the default wasn’t because they were better. It was because, for a while, they were the only way to deliver something that felt fluid – something that didn’t flash white between pages or jank the scroll position.

    But here’s the uncomfortable truth: most SPAs don’t actually deliver the polish they promise.

    What you usually get is:

    • A page transition that looks smooth, until you realise it’s just fading between two loading states
    • Broken scroll restoration
    • Inconsistent focus behaviour
    • Delayed navigation while scripts rehydrate components
    • Layout shift, content popping, or full-page skeletons
    • A performance hit that’s entirely disproportionate to the effect

    This isn’t theoretical. Look at most sites built with Next.js, Gatsby, or Nuxt. They’re shipping kilobytes (often megabytes) of JavaScript just to fake native navigation. Routing logic, hydration code, loading spinners – all just to stitch together something that browsers already knew how to do natively.

    Instead of smoothness, you get simulation. And instead of a fast, stable, SEO-friendly experience, you get a heavy JavaScript machine trying to recreate the native behaviour we threw away.

    We’ve been adding mountains of JS to “feel” fast, while making everything slower.

    An aside – I went deeper on this in JavaScript broke the web, where I outlined how our obsession with JS-first development is actively eroding the web’s foundations.

    The web grew up

    While we were busy reinventing navigation in JavaScript, the platform quietly solved the problem.

    Modern browsers – specifically Chromium-based ones like Chrome and Edge – now support native, declarative page transitions. With the View Transitions API, you can animate between two documents – including full page navigations – without needing a single line of JavaScript.

    Yes, really.

    What we’re calling “modern CSS” here is shorthand for View Transitions, Speculation Rules, and a return to native browser features that were always designed to handle navigation, interaction, and layout. These capabilities let us build rich, seamless experiences – without rewriting the browser in JavaScript.

    An aside – CSS is also declarative, resilient, expressive, scalable, and increasingly intuitive. It’s accessible to anyone who can write plain HTML. And that structural clarity reinforces everything I argued in Why semantic HTML still matters – that clean, meaningful markup is the bedrock of performance, maintainability, and machine readability.

    That means you can:

    • Fade between pages
    • Animate shared elements (e.g. thumbnails → product detail)
    • Maintain persistent elements like headers or navbars
    • Do it all with real URLs, real page loads, and no JS routing hacks

    Let’s make this concrete.

    🔄 Basic cross-page fade transition

    With just a few lines of CSS, you can trigger smooth visual transitions between pages.

    On both the current and destination page, add:

    @view-transition {
      navigation: auto;
    }
    
    ::view-transition-old(root),
    ::view-transition-new(root) {
      animation: fade 0.3s ease both;
    }
    
    @keyframes fade {
      from { opacity: 0; }
      to   { opacity: 1; }
    }
    

    That’s it. The browser handles the transition – no client-side routing, no hydration, no loading spinners.

    🔁 Shared element transitions

    Want to animate a thumbnail image into its full-size product counterpart on the next page?

    No JavaScript needed – just assign the same view-transition-name to the element on both pages:

    On the product listing page:

    
      
    
    

    On the product detail page:

    
    

    The browser matches and animates the elements between navigations. You can animate position, scale, opacity, layout – all with CSS.

    🤖 But what if I need JS-driven transitions?

    You can manually trigger transitions inside a page too:

    document.startViewTransition(() => {
      document.body.classList.toggle('dark-mode');
    });
    

    Perfect for things like tab toggles or theme switches — without needing a framework or hydration layer.

    🔮 Speculation rules: instant navigation without JS

    View Transitions make things smooth. But what about fast?

    That’s where Speculation Rules come in. This lets the browser preload or prerender full pages based on user behaviour – like hovering or touching a link – before they click.

    
    

    The result? Navigation that’s instant. No waiting. No loading. No spinners.

    ⚠️ A Note of Caution

    Speculation Rules are a performance multiplier. On a lean site, they make things feel instant. But if your pages are slow, bloated, or JS-heavy, speculation just front-loads those costs.

    If your site is bloated, speculation will still speculate – and the user pays the price.

    That means wasted CPU, network bandwidth, and mobile battery – often for pages the user never even visits.

    Use them carefully. On a fast site, they’re magic. On a slow one, they’re a trap.

    Browsers want to help – if we let them

    Modern browsers are smarter than ever. They’re constantly looking for ways to improve speed, responsiveness, and efficiency – but only if we let them.

    One of the clearest examples is the Back/Forward Cache (bfcache), which allows entire pages to be snapshotted and restored instantly when users navigate back or forward.

    It’s effectively free performance – but only for pages that behave. That means no rogue JavaScript, no intercepted navigation, no lifecycle chaos. Just clean, declarative architecture. Just HTML and CSS.

    Unsurprisingly, this plays beautifully with a well-structured, multi-page site. But for most SPAs, it’s a non-starter. The very design patterns that define them – hijacked routing, client-side rendering, complex state management – break the assumptions that bfcache relies on.

    This is a microcosm of a much bigger theme: browsers are evolving to reward simplicity and resilience. They’re building for the kind of web we should have been embracing all along. And SPAs are increasingly the odd ones out.

    📊 SPA vs MPA: a performance reality check

    Average Next.js marketing site

    • JS bundle: 1 – 3MB
    • TTI: ~3.5 – 5s (depending on hydration strategy)
    • Route transitions: simulated
    • SEO: complex, fragile
    • Scroll/anchor behaviour: unreliable

    Modern MPA + View Transitions + Speculation Rules

    • JS bundle: 0KB (optional enhancements only)
    • TTI: ~1s
    • Route transitions: real, native
    • SEO: trivial
    • Scroll/focus/history: browser-default and perfect

    Modern CSS doesn’t just replace SPA behaviour – it outperforms it.

    Don’t build a website like it’s an app

    Most websites aren’t apps.

    They don’t need shared state. They don’t need client-side routing. They don’t need interactive components on every screen. But somewhere along the way, we stopped making the distinction.

    Now we’re building ecommerce stores, documentation portals, marketing sites, and blogs using stacks designed for real-time collaborative UIs. It’s madness.

    A homepage with six content blocks and a contact form doesn’t need hydration, suspense boundaries, and a rendering strategy.

    It needs fast markup, clean URLs, and maybe – maybe – a bit of interactivity layered on top.

    And yet, on every project:

    1. A stakeholder says, “make it feel like an app.”
    2. A dev team reaches for Next.js or Nuxt.
    3. Routing goes client-side.
    4. Performance falls off a cliff.
    5. Now you need edge functions, streaming, ISR, loading strategies, and a debugging plan.
    6. And somehow… it still feels slower than a regular link click and a CSS animation.

    This isn’t about being anti-framework. It’s about being intentional.

    Use React if you want. Use Tailwind, Vite, whatever. Just don’t ship it all to the browser unless you need to.

    Build a site like a site. Use HTML. Use navigation. Use the platform.

    It’s faster, simpler, and better for everyone.

    Build for the web we have

    SPAs were a clever solution to a temporary limitation. But that limitation no longer exists.

    We now have:

    • Native, declarative transitions between real pages
    • Instantaneous prerendered navigation via Speculation Rules
    • Graceful degradation
    • Clean markup, fast loads, and real URLs
    • A platform that wants to help – if we let it

    If you’re still building your site as an SPA for the sake of “smoothness,” you’re solving a problem the browser already fixed – and you’re paying for it in complexity, performance, and maintainability.

    Use modern server rendering. Use actual pages. Animate with CSS. Preload with intent. Ship less JavaScript.

    Build like it’s 2025 – not like you’re trapped in a 2018 demo of Gatsby.

    You’ll end up with faster sites, happier users, and fewer regrets.

    Share. Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Telegram Email
    Previous ArticleExperimental surgery performed by AI-driven surgical robot
    Next Article Do not download the app, use the website
    TechAiVerse
    • Website

    Jonathan is a tech enthusiast and the mind behind Tech AI Verse. With a passion for artificial intelligence, consumer tech, and emerging innovations, he deliver clear, insightful content to keep readers informed. From cutting-edge gadgets to AI advancements and cryptocurrency trends, Jonathan breaks down complex topics to make technology accessible to all.

    Related Posts

    Google DeepMind wants to know if chatbots are just virtue signaling

    February 19, 2026

    The Download: a blockchain enigma, and the algorithms governing our lives

    February 19, 2026

    Welcome to the dark side of crypto’s permissionless dream

    February 19, 2026
    Leave A Reply Cancel Reply

    Top Posts

    Ping, You’ve Got Whale: AI detection system alerts ships of whales in their path

    April 22, 2025684 Views

    Lumo vs. Duck AI: Which AI is Better for Your Privacy?

    July 31, 2025273 Views

    6.7 Cummins Lifter Failure: What Years Are Affected (And Possible Fixes)

    April 14, 2025156 Views

    6 Best MagSafe Phone Grips (2025), Tested and Reviewed

    April 6, 2025117 Views
    Don't Miss
    Technology February 19, 2026

    Google DeepMind wants to know if chatbots are just virtue signaling

    Google DeepMind wants to know if chatbots are just virtue signaling With coding and math,…

    The Download: a blockchain enigma, and the algorithms governing our lives

    Welcome to the dark side of crypto’s permissionless dream

    The robots who predict the future

    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    About Us
    About Us

    Welcome to Tech AI Verse, your go-to destination for everything technology! We bring you the latest news, trends, and insights from the ever-evolving world of tech. Our coverage spans across global technology industry updates, artificial intelligence advancements, machine learning ethics, and automation innovations. Stay connected with us as we explore the limitless possibilities of technology!

    Facebook X (Twitter) Pinterest YouTube WhatsApp
    Our Picks

    Google DeepMind wants to know if chatbots are just virtue signaling

    February 19, 20260 Views

    The Download: a blockchain enigma, and the algorithms governing our lives

    February 19, 20260 Views

    Welcome to the dark side of crypto’s permissionless dream

    February 19, 20260 Views
    Most Popular

    7 Best Kids Bikes (2025): Mountain, Balance, Pedal, Coaster

    March 13, 20250 Views

    VTOMAN FlashSpeed 1500: Plenty Of Power For All Your Gear

    March 13, 20250 Views

    This new Roomba finally solves the big problem I have with robot vacuums

    March 13, 20250 Views
    © 2026 TechAiVerse. Designed by Divya Tech.
    • Home
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms & Conditions

    Type above and press Enter to search. Press Esc to cancel.