logoalt Hacker News

turtlebitslast Thursday at 11:37 PM1 replyview on HN

In the simplest web server, the server returns HTML. Having the backend return JSON is where you're adding complexity. Your front end code won't even work without some base HTML.


Replies

aembletonlast Thursday at 11:58 PM

Having the html stored both on a static html site that can be cached and in the code base of a backend server is more complex to me than keeping these concerns separate.