Question about Angular 2 and Google bot

122 views
Skip to first unread message

Lars Norén

unread,
Nov 20, 2016, 2:10:47 PM11/20/16
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.

Tito

unread,
Nov 22, 2016, 5:52:33 PM11/22/16
to Angular
Hello Lars

Have you read the sitemap documentation from google? It is worth reading so your sire is not dinged as problematic. 

Reply all
Reply to author
Forward
0 new messages