DEV Community

Discussion on: Building JavaScript Frameworks to Conquer eCommerce

Collapse
 
mtyson profile image
MTyson

Just to throw in some complexity - it seems like the per-page routing for Next/SvelteKit would lend itself to MPA... so you get a kind of best of both worlds there (SPA-like for a given pageset, MPA-like for the overall app).

Collapse
 
ryansolid profile image
Ryan Carniato

I mean a SPA could be built on any page hence we see SPA in MPA too.

But this per page routing is what I meant by all in. What I wanted to call out. It isn't equivalent. The problem is MPA style optimizations essentially deconstruct the app. If you model it like a SPA and then just turn off client side routing you still have an app written in a way that is difficult to optimize for MPA. You would need to apply one of the 3 approaches mentioned in the article and the popular solutions don't have tools for that. I just want to clarify we are not near a best of both worlds solution in those.

Collapse
 
mtyson profile image
MTyson

Cool, yeah, that makes a lot of sense.