Lars Norén
unread,Nov 20, 2016, 2:10:47 PM11/20/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Angular
Hi, I have put together a list below of what to avoid when developing in Angular 2 or Google will have problems with indexing the site.
Is there additional things to think about and last point below. I think of Facebook, Twitter, etc.
Any advice is most welcome :-)
Avoid things that Google (probably) can’t handle
• Use rel=canonical when serving content from multiple URLs is required.
• Don’t use hashtags to define the URL.
• Don’t use weird linking elements like render a <span> element, then attach a click hook which fires a pushState().
• Follow the principles of progressive enhancement.
• Limit the number of embedded resources, in particular the number of JavaScript files and server responses required to render the page.
• Don’t block resources as essential script or data resources from being crawled by robots
• Keep in mind that other search engines and web services accessing your content might not support JavaScript at all, or might support a different subset.
I am a web analyst
All the best from me.