DEV Community

Discussion on: Are we overusing SPAs?

Collapse
 
aimerib profile image
Aimeri Baddouh

I agree, there isn't quite anything like that outside of a spa. You can get something close with websockets and ajax, but you sort of need a server to do that. For static assets, you're pretty much stuck with loading a whole new page when you click on a link. I wonder how much of a benefit one truly gets from being able to override the default browser api for navigation though. From a performance point of view, my experience has been that static assets are much faster to load than a page with the weight of a framework.
Perhaps a decent solution for your problem is using something like Vue in the same way people used to use JQuery, for that extra bit of dynamic content on your, otherwise, static pages.
That is not to say that there's absolutely no value in SPAs, though. If one is trying to have the same code for their mobile apps and web app, that certainly makes sense.