I wish my code was half as good as my expectations for how my code should be. My lattes are better than my code, so maybe I should make latte art instead of ascii art
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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.