zlacker

[return to "Please disable JavaScript to view this site"]
1. enw+Yv[view] [source] 2020-11-29 01:51:09
>>abused+(OP)
I’d love to get rid of JS for my personal sites, but I know of no clean and simple way to render dynamic content otherwise. Server-side rendering seems a bit messy. I want a clean REST API separate from the UI.

How can I generate pages with dynamic content easily? Ideally with absolute minimal dependencies.

◧◩
2. slmjkd+bL[view] [source] 2020-11-29 05:52:26
>>enw+Yv
How is server-side rendering messy? It's just putting html strings together based on data, no frameworks or libraries needed.
◧◩◪
3. enw+fO[view] [source] 2020-11-29 06:50:36
>>slmjkd+bL
That's what I mean. It feels much messier than JSX, where "putting strings together" is a clean first-class citizen.

With SSR, you need some component that's aware of every change, and that triggers those re-renders at sensible times (every render takes server resources). This all feels messy, compared to rendering just-in-time on the client-side.

◧◩◪◨
4. slmjkd+Oc1[view] [source] 2020-11-29 13:12:02
>>enw+fO
I wonder what use case you're talking about, I don't have a lot of cases where re-render needs to be dealt with, unless I'm making a web app like a multi player photoshop in the browser, in those cases I won't use SSR. For most information based sites, e.g. Hacker News, Twitter, there's no need to track change and re-render, all the data can be ready on the server side like querying database or making request to third party APIs, then it'll just be piecing HTML strings.
[go to top]