Re:I don't want to do front-end anymore
by ryanbrunner on Tuesday February 09, 2021 @07:13AM
(#26076594)
Having your site work with "raw html" pays off several times over in my opinion, even if you completely ignore people who actually turn off Javascript:
- Page navigation becomes easier if you know the server can handle any route you throw at it as a launch point.
- You can get by with cheaper end-to-end tests for critical flows by not using Javascript in your test suite (although you should be careful to use it when it's important)
- You get a degree of protection if something does go wrong on the front end that you get a non-JS experience to fall back to.
- Pages that genuinely don't need Javascript (think like simple CRUD forms) don't have to pay the SPA tax.
- Page navigation becomes easier if you know the server can handle any route you throw at it as a launch point.
- You can get by with cheaper end-to-end tests for critical flows by not using Javascript in your test suite (although you should be careful to use it when it's important)
- You get a degree of protection if something does go wrong on the front end that you get a non-JS experience to fall back to.
- Pages that genuinely don't need Javascript (think like simple CRUD forms) don't have to pay the SPA tax.