News for hackers. Stuff that matters.
Re:API server and a static front end – the future? by mst on Saturday October 03, 2015 @07:02PM (#10325740)
Working on the assumption that the crawlers will index the JSON in the script tag?
Re:API server and a static front end – the future? by jrochkind1 on Saturday October 03, 2015 @08:01PM (#10325901)
Crawlers indexing is a different problem, and not the one the OP was talking about -- the OP's problem is specifically speed of first page display, and even more specifically speed of first page display due to having to make AJAX requests for data to display the first page.

But crawlers and "single-page" Javascript apps are another potential problem, sure, although not the one the OP discussed.

But wanting actual HTML in the original non-JS delivery for crawlers is I guess why people have followed the 'universal JS' approach instead of what we're talking about here.

Other comments in this post suggest that Google, at least, does fine with Javascript-generated pages these days. I have no idea myself.

Re:API server and a static front end – the future? by mst on Monday October 05, 2015 @02:32PM (#10333766)
I was replying to a comment that specifically mentioned crawlers: https://news.ycombinator.com/item?id=10325666
Re:API server and a static front end – the future? by teen on Saturday October 17, 2015 @03:37AM (#10403705)
Just catching up on this reply- yes- google has no problem rendering the json into readable html. Just using server side rendering for meta / title tags is the way to go (at least for now)
Re:API server and a static front end – the future? by teen on Saturday October 17, 2015 @03:37AM (#10403706)
yes- and Google does this just fine. The meta tags are more for fb, slack, twitter, etc.