So, if I want pages to work with AND without JS, then I basically have to implement all views for both server-side and client-side rendering. Right? I wish that were not the case.


Which also probably means that I have to have endpoints for both the webpage and the data populating the page.

Eh, no.
Github actually does a good job in a a lot of their functionality (despite much not working without js).
Every action is a post request, so they just send forms over. JS just autosubmits the forms in the background and maybe reloads part of the page (in jquery, that's like `$('#element').load('url/of/page #element');`)

(Where they go wrong is by hiding the submit buttons with CSS rather than with noscript tags)

Sign in to participate in the conversation
Functional Café

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!