Fireship · @fireship

Angular SEO with Rendertron

Uploaded November 8, 2017 · Length 13:47

Angular SEO with Rendertron

Summary

Angular SEO optimization using Rendertron for search engine crawlers and social media bots without Angular Universal.

  • angular seo
  • rendertron
  • search engine optimization
  • angular progressive web app
  • firebase cloud functions

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    today I'm going to show you something

  2. 0:01

    that's never been done before I'm going

  3. 0:03

    to take an angular 5 progressive web app

  4. 0:04

    make it 100% optimized for search engine

  5. 0:07

    crawlers like Googlebot and Bing BOTS

  6. 0:09

    make all of your routes readable by

  7. 0:11

    social media link bots make it fully

  8. 0:13

    compatible with angularfire - or any

  9. 0:15

    other asynchronous data source and we're

  10. 0:17

    going to do this all without ever using

  11. 0:19

    angular universal we're going to do this

  12. 0:21

    with a brand new library from the Google

  13. 0:22

    Chrome team called render Tron if you're

  14. 0:25

    not familiar with headless chrome or

  15. 0:26

    render Tron I recommend watching Sam

  16. 0:28

    Lee's talk at polymer summit 2017 it is

  17. 0:31

    truly mind-blowing if you've ever

  18. 0:32

    struggled with client-side JavaScript

  19. 0:33

    frameworks and search engine

  20. 0:35

    optimization what I'm going to show you

  21. 0:37

    today is how to use this tool with

  22. 0:39

    angular 5 and firebase cloud functions

  23. 0:41

    and you're going to be very surprised at

  24. 0:43

    how easy this is to implement with an

  25. 0:44

    existing angular app I have a full

  26. 0:47

    working demo deployed to firebase

  27. 0:48

    hosting that you can test and validate

  28. 0:50

    and I'm also going to be sharing all of

  29. 0:52

    the source code on angular firebase com

  30. 0:54

    if you're new here make sure to

  31. 0:56

    subscribe and if you want to keep this

  32. 0:57

    content free and frequent consider

  33. 0:59

    becoming a pro supporter let's take a

  34. 1:02

    closer look at how the system is going

  35. 1:03

    to work we have just a regular angular

  36. 1:05

    progressive web app deployed to firebase

  37. 1:07

    hosting then we have our render tron app

  38. 1:10

    on the right render tron is just a

  39. 1:12

    Chrome browser that can run on the

  40. 1:13

    server

  41. 1:14

    meaning it can render your site just

  42. 1:15

    like a normal user would and then it can

  43. 1:17

    return that data back to a bot that

  44. 1:19

    wants to read the meta tags or any

  45. 1:20

    asynchronous data that was loaded into

  46. 1:22

    the page from there we're going to set

  47. 1:24

    up a cloud function to serve as

  48. 1:25

    middleware that will determine if a user

  49. 1:27

    is a bot or an actual human that should

  50. 1:29

    receive the normal angular app let's say

  51. 1:31

    someone shares a link and the Facebook

  52. 1:33

    bought wants to crawl your site to show

  53. 1:34

    a preview of that link the cloud

  54. 1:36

    function will route the request to

  55. 1:38

    render Tron first then respond to the

  56. 1:40

    Facebook bot with a fully rendered page

  57. 1:41

    this means you can create meta tags

  58. 1:43

    dynamically or load data asynchronously

  59. 1:45

    and it can still be read by any kind of

  60. 1:47

    bot if a regular human comes to visit

  61. 1:50

    the site it's going to skip render Tron

  62. 1:52

    and just serve the angular app directly

  63. 1:54

    if this user decides to share a link

  64. 1:56

    from your app in social media it's going

  65. 1:58

    to show any meta tags associated with