It's time for modern CSS to kill the SPA
101–110 of 516 posts
Re: It's time for modern CSS to kill the SPA
#102Re: It's time for modern CSS to kill the SPA
#103"... someone says the words. A CMO. A digital lead. A brand manager. ... it’ll be an SPA." Why not spell out CMO and SPA and a civilian such as myself will not have to toddle off and dig out a search engine? If you are going to get all assertive and pissed off, please be inclusive too.
Re: It's time for modern CSS to kill the SPA
#104I'm fully convinced that it's time to kill SPAs on 99% of websites and that the community is too defensive on the topic.
Re: It's time for modern CSS to kill the SPA
#105Re: It's time for modern CSS to kill the SPA
#106Earlier quoted context omitted.
In almost all cases the back swipe in the spa resets you to the top of the page, navigating out of the app and back in doesn’t work, etc. It’s really hard to build a multi page spa that feels good.
Never thought about scroll position (tho SPA I’ve built recently I think does it ok). How do you solve it?
https://dev.to/cyco130/how-to-get-client-side-navigation-rig...
Re: It's time for modern CSS to kill the SPA
#107Re: It's time for modern CSS to kill the SPA
#108Re: It's time for modern CSS to kill the SPA
#109Earlier quoted context omitted.
In almost all cases the back swipe in the spa resets you to the top of the page, navigating out of the app and back in doesn’t work, etc. It’s really hard to build a multi page spa that feels good.
Never thought about scroll position (tho SPA I’ve built recently I think does it ok). How do you solve it?
In Tanstack Router it's a boolean you set when creating the router. The documentation nicely lays out what's being done under the hood, and it's quite a bit.[1] I wouldn't try that at home.
In React Router you just chuck a somewhere in your DOM.[2]
[1]: https://tanstack.com/router/v1/docs/framework/react/guide/sc...
[2]: https://reactrouter.com/6.30.1/components/scroll-restoration
Re: It's time for modern CSS to kill the SPA
#110I once worked at a place where (for involved reasons not worth rehashing for this conversation) some of the backoffice, admin pages got rewritten in SPA fashion, after they had already been written in server-side fashion. It was an accidental experiment that showed me that the backend code did not decrease in size, whereas the frontend ballooned up to the same size as the backend (for fairly simple functionality even…