Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Serving HTML from the server is great for search engines.

Google and the other search engines should go with the times and start to render and index single page js applications just like they index html pages. Executing js on the server and get the resulting output is a solved problem. JS is enabled by default on all browsers that matter (and very difficult to disable), I don't understand why we still have to play nice with search engines and render the html on the server as well just for them.




> Google is already executing js

Any idea then why people keep saying¹ that "Serving HTML from the server is great for search engines"?

And why should we use this² when google is perfectly capable of executing the js and get the html output all by itself?

¹[citation needed]

²https://developers.google.com/webmasters/ajax-crawling/docs/...


That link describes a method for translating a URL where a static version of a dynamic page can be found. So you still have to serve and generate static content yourself. So we're not quite there yet. But seems like at least Google has started executing _some_ JS. There are more search engines than Google though :)


Time till the page is usable comes under consideration. You can load the relevant html then begin the bootstrapping of the app.

If I recall correctly, Twitter had this problem. The size of their apps + templates bloated to 2MB or so - making that initial page load pretty bad.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: