Fireship · @fireship
Angular SEO with Rendertron
Uploaded November 8, 2017 · Length 13:47
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.
- 0:00
today I'm going to show you something
- 0:01
that's never been done before I'm going
- 0:03
to take an angular 5 progressive web app
- 0:04
make it 100% optimized for search engine
- 0:07
crawlers like Googlebot and Bing BOTS
- 0:09
make all of your routes readable by
- 0:11
social media link bots make it fully
- 0:13
compatible with angularfire - or any
- 0:15
other asynchronous data source and we're
- 0:17
going to do this all without ever using
- 0:19
angular universal we're going to do this
- 0:21
with a brand new library from the Google
- 0:22
Chrome team called render Tron if you're
- 0:25
not familiar with headless chrome or
- 0:26
render Tron I recommend watching Sam
- 0:28
Lee's talk at polymer summit 2017 it is
- 0:31
truly mind-blowing if you've ever
- 0:32
struggled with client-side JavaScript
- 0:33
frameworks and search engine
- 0:35
optimization what I'm going to show you
- 0:37
today is how to use this tool with
- 0:39
angular 5 and firebase cloud functions
- 0:41
and you're going to be very surprised at
- 0:43
how easy this is to implement with an
- 0:44
existing angular app I have a full
- 0:47
working demo deployed to firebase
- 0:48
hosting that you can test and validate
- 0:50
and I'm also going to be sharing all of
- 0:52
the source code on angular firebase com
- 0:54
if you're new here make sure to
- 0:56
subscribe and if you want to keep this
- 0:57
content free and frequent consider
- 0:59
becoming a pro supporter let's take a
- 1:02
closer look at how the system is going
- 1:03
to work we have just a regular angular
- 1:05
progressive web app deployed to firebase
- 1:07
hosting then we have our render tron app
- 1:10
on the right render tron is just a
- 1:12
Chrome browser that can run on the
- 1:13
server
- 1:14
meaning it can render your site just
- 1:15
like a normal user would and then it can
- 1:17
return that data back to a bot that
- 1:19
wants to read the meta tags or any
- 1:20
asynchronous data that was loaded into
- 1:22
the page from there we're going to set
- 1:24
up a cloud function to serve as
- 1:25
middleware that will determine if a user
- 1:27
is a bot or an actual human that should
- 1:29
receive the normal angular app let's say
- 1:31
someone shares a link and the Facebook
- 1:33
bought wants to crawl your site to show
- 1:34
a preview of that link the cloud
- 1:36
function will route the request to
- 1:38
render Tron first then respond to the
- 1:40
Facebook bot with a fully rendered page
- 1:41
this means you can create meta tags
- 1:43
dynamically or load data asynchronously
- 1:45
and it can still be read by any kind of
- 1:47
bot if a regular human comes to visit
- 1:50
the site it's going to skip render Tron
- 1:52
and just serve the angular app directly
- 1:54
if this user decides to share a link
- 1:56
from your app in social media it's going
- 1:58
to show any meta tags associated with


