Fireship · @fireship
Firebase Performance on the Web QuickStart
Uploaded May 10, 2019 · Length 9:20
Summary
Firebase Performance on the Web QuickStart: setting up and using Firebase Performance for web app performance monitoring and optimization.
- firebase performance
- web performance monitoring
- angularfire
- javascript performance optimization
- firebase console
- custom traces
- web app performance
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
there were a whole bunch of awesome
- 0:01
announcements at Google i/o 2019 but my
- 0:03
personal favorite is definitely firebase
- 0:05
performance for the web well today we're
- 0:08
expanding performance monitoring to the
- 0:09
web this is a tool that can benefit any
- 0:13
website that cares about performance
- 0:15
even if that site isn't already using
- 0:17
other firebase products by simply adding
- 0:19
a script tag to your site or including
- 0:21
firebase perf in your JavaScript bundle
- 0:22
you'll get insights about how your web
- 0:24
app performs out in the real world in
- 0:25
terms of initial page load performance
- 0:26
and HTTP calls over the network in
- 0:29
today's video we'll look at the basics
- 0:31
of firebase performance and take things
- 0:32
a few steps further by implementing our
- 0:34
own custom traces and we'll look at some
- 0:36
awesome upcoming features in angular
- 0:38
fire to integrate with angular and rxjs
- 0:40
if you're new here like and subscribe
- 0:42
and make sure to download the mobile app
- 0:43
on iOS or Android to take the firebase
- 0:45
performance quiz after you're done
- 0:47
watching this video now there's a few
- 0:48
different ways we can use firebase
- 0:50
performance the most basic way is to use
- 0:52
it as just a standalone tool in an
- 0:54
existing website this approach will
- 0:56
insert a lightweight script into your
- 0:57
HTML document and then you'll
- 0:59
automatically get all kinds of
- 1:00
performance reporting on the firebase
- 1:01
console so this is a great option if you
- 1:03
have an existing website and you want
- 1:05
some performance reporting but you don't
- 1:06
want to use any other fighter based
- 1:07
products the next option is to use it in
- 1:09
combination with firebase hosting if
- 1:11
you're already using firebase hosting
- 1:13
you can use these magic script tags to
- 1:15
easily import it into your project but I
- 1:17
think the vast majority of people will
- 1:18
use it in combination with a module
- 1:20
bundle or like web pack that's how we're
- 1:22
going to use it today in the context of
- 1:23
an angular application but the process
- 1:25
is very similar for all JavaScript
- 1:27
frameworks the first thing I want to do
- 1:28
is install the latest version of
- 1:30
firebase making sure that it's version
- 1:31
6.0 or greater now most of the code that
- 1:34
we'll look at is relevant to any
- 1:35
JavaScript app but at the end of the
- 1:37
video we're going to look at some really
- 1:38
cool new bleeding edge stuff from the
- 1:40
angularfire library at the time of this
- 1:42
video you can use it by installing an
- 1:43
angular fire with the next tag from
- 1:45
there you'll want to go to the firebase
- 1:47
console and go to the Settings tab and
- 1:49
you'll see an option to now add your app
- 1:51
as a web app you'll want to do this even
- 1:52
if you have an existing app because
- 1:54
there's a new property that you need to
- 1:55
have in your firebase config in order to
- 1:57
work with firebase performance that
- 1:59
property is the app ID which you can see


