Hacker News new | ask | show | jobs
by hughesjj 1093 days ago
I mean, there's a reason ajax took off in the first place. Member having to reload the entire page on every user interaction? Member iframes? Member flash and silver light and java applets?

With stuff like web sockets/Web rtc /whatever new awesome sauce is out today a lot of that has changed, but that's still really the same spirit of ajax anyway, just with actual persistent connections instead of hacking it with long polling.

You can write a shitty system regardless of paradigms used.

You can write a beautiful system even with painful primitives.

All it comes down to is how much time and talent you're willing to invest, which is admittedly a cliche and non answer, but true nonetheless.

1 comments

AJAX took off because it's good for interactivity. If your "AJAX" requests are literally blocking the functionality of the website then they're no better than returning a big HTML blob. Your page just takes longer to load and the user experience is worse.
Returning new HTML blobs will never be faster than an equivalent AJAX roundtrip. In other words, if AJAX is slow when "literally blocking", fetching new HTML is at least that slow as well.

Static HTML only has a potential latency benefit on first load due to the ability to save render-blocking resource roundtrips. For later requests where those resources are already fetched, it only adds bandwidth overhead.