I just looked at a few e-commerce sites such as Amazon, Aliexpress and eBay and noticed they mostly aren't SPAs.
and I installed the Jetstream with vue stack and realized I may not need it.
What should be the work flow for a website that doesn't use much SPA code but need SPA for a few parts of it?
I'm asking because I wonder if I install the vue+inertia Jetstream stack and my website isn't mostly SPA will it be hard to build the site on top of it?
However, I can think of a few parts where the site might be using SPA.
Am I correct that the sites I mentioned above are not SPAs? Or they are and i'm missing it?
i may be incorrect here, but not the whole shop should be a spa.
I ran into some problems with this, since the crawler is rendering the page "when he got some free ressources". that means when google was indexing my products and its content there was no actual content, because the ajax was not executed yet (prerendering solved this issue for me). on google devs there is a nice explenation how the google bot works.
Of course you can do some nice fancy stuff to create an attractive frontpage for example but think about using another solution for products and content you want to be crawled on time :)
@stacker I don’t think you understand what a SPA is.
It’s not a SPA if you’re just using JavaScript to make portions of your website dynamic. That’s just called using JavaScript to make portions of your website dynamic. It’s what web developers have done for 20-plus years now, and is called “progressive enhancement”.
But some websites are so big that even a portion of the site is an "app" by itself. Example is YouTube. Most of the places you go redirect you to a new page. But even then - the homepage itself has a sidebar that whenever you click on it you don't seem to be redirected.
Or when you go into YouTube settings page - you again have the settings sidebar and the main container with the content changing whenever you click the sidebar links, but without redirections. But - in order to get to the Settings page you were redirected to a different page.
So YouTube is made of many "SPAs" because it's a large system - or you would still refer to it as making portions dynamic? I seriously ask because I want to know