Hacker News new | ask | show | jobs
by untog 4497 days ago
As someone who is familiar with AngularJS but hasn't used it much, the idea that the best answer running WebKit on the server, indexing your client-side generated pages and dumping them out into a Google-indexable static resource just blows my mind.
3 comments

What's really interesting is that "google" didn't see this coming - they made angular, they should in theory be huge advocates of SPA, but in reality their primary product doesn't support it well at all.
Googlebot renders client side JS just fine. Notice how the OP didn't list them and instead listed FB/Twitter.
The angularjs.org sites are indexed, just by using a trivial nginx directive to selectively serve partials to crawlers. All of the angularjs.org apps still rank fairly well using this strategy.

This isn't always appropriate of course, those apps aren't really relying on data from a database, they're proper SPAs. But as noted by others, there are ways to fool crawlers if it's something you want to do.

Generally though, the feeling is that crawlers not executing JS is going to end, and the problem will go away on its own.

> dumping them out into a Google-indexable static resource just blows my mind.

You can do that, however if you dump static page to Google bot IP only it's an SEO cheating.

No, this is explicitly endorsed by Google:

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

I heard something similar in a Reactjs conference by Pete Hunt, at the time i was like , "huh?".