Hi there, I've been spending my morning researching solutions for using AngularJS (or SPA in general) as public sites, despite the fact that SEO and social sharing get punched in their smug little faces because of the empty, brackets-filled page sources which is served by default.
General solution: you need to serve pre-rendered pages/content to Google/Facebook/etc crawlers. Googling will point you to DIY solutions such as PhantomJS <http://phantomjs.org/> and Prerender <https://prerender.io/>, or pay-us-to-cache-your-site solutions like BromBone <http://www.brombone.com/> and -again- Prender.io. This is quite fine, they've done (and do) a good job/service for a valid price. But here's a thought-of-the-day: *I think you, Mr/s Google, should provide this service. For free.* I'll try to summarize why: - *You use to make hard/irritating things easy for us. * Though I now eventually will setup my own Prerender server for my and my customers SPA-sites, I'm not looking forward to spend time and resources for these tasks. I want to develop the sites and then play video games and drinking beer. - *You've got the resources for the job.* You give every user 15GB data storage per default. Sounds like a couple of billions sites wouldn't be a problem here. And your crawlers would read (and cache) the information anyhow if they could, right? - *You're a search engine. You want - ney! - you NEED this data.* You provide free services stuff for our information, remember? Well, you've got it. - *You're the founder of AngularJS.* And I really like it, thank you. Now make it applicable for every need. As a bonus you'll help every other SPA framework, but you don't mind. - *You like to take the lead.* Even if you're hammering on your search engine right now to make it read ajax based content better, it will take yet a couple of years for the other engines/crawlers to catch up. Just be a bud and take the lead on this one too, so we can sleep at night knowing our web application does its job in every (reasonable) aspect. So, now when you're convinced that you need to shoulder this one, here's what I have in mind: - Throw PhantomJS/Prerender/whatever a bunch of money for their hard work and solutions, and use them to make even better technology. - Add this service to your Webmaster Tools portal. I want an easy way to enable the prerender/cache function for each site and some basic settings. - I guess I still need to add the proxy routing stuff myself, but that's fine. You just provide the well-written documentation for the most common servers. Well, I think that's about all. Thanks a bunch. xoxo, D PS. If this' over the AngularJS group's head, please point the right Chief-Of-Decisions-Guy at my direction. Thanks. -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.