▲ | renegat0x0 12 hours ago | |
I performed some transition from django pure template solution to more javascript oriented. - my server was running on raspberry PI, now heavy responses are returned via JSON, I think REST-like data. Which makes me offload burden to clients - javascript makes the page more responsive. Parts can be loaded via separate calls, and it divides something that would be otherwise a monolith into subsequent small calls - In my experience nearly all simple binary decisions "use only X", and "use only Y" solutions are bad | ||
▲ | gwd 12 hours ago | parent | next [-] | |
> Parts can be loaded via separate calls, and it divides something that would be otherwise a monolith into subsequent small calls He's not saying don't use Javascript; he's saying that instead of having those small calls shipping JSON which is then converted into HTML, just have those small calls ship HTML to begin with. It's surprising how far you can get with something like HTMX. | ||
▲ | endemic 10 hours ago | parent | prev | next [-] | |
> Parts can be loaded via separate calls Just makes me think of my bank's site, which shows a few seconds of "loading" animations on each section of the page. Maybe if the main content loaded quickly and ancillary content was lazy-loaded it would feel faster. | ||
▲ | 11 hours ago | parent | prev | next [-] | |
[deleted] | ||
▲ | naasking 11 hours ago | parent | prev [-] | |
> it divides something that would be otherwise a monolith into subsequent small calls This is often at odds with page responsiveness, and can increase server load considerably. |