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.

Show thread
Follow

@philipwhite
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 `$('').load('url/of/page ');`)

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

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml