Fireship · @fireship

Firebase Performance on the Web QuickStart

Uploaded May 10, 2019 · Length 9:20

Firebase Performance on the Web QuickStart

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.

  1. 0:00

    there were a whole bunch of awesome

  2. 0:01

    announcements at Google i/o 2019 but my

  3. 0:03

    personal favorite is definitely firebase

  4. 0:05

    performance for the web well today we're

  5. 0:08

    expanding performance monitoring to the

  6. 0:09

    web this is a tool that can benefit any

  7. 0:13

    website that cares about performance

  8. 0:15

    even if that site isn't already using

  9. 0:17

    other firebase products by simply adding

  10. 0:19

    a script tag to your site or including

  11. 0:21

    firebase perf in your JavaScript bundle

  12. 0:22

    you'll get insights about how your web

  13. 0:24

    app performs out in the real world in

  14. 0:25

    terms of initial page load performance

  15. 0:26

    and HTTP calls over the network in

  16. 0:29

    today's video we'll look at the basics

  17. 0:31

    of firebase performance and take things

  18. 0:32

    a few steps further by implementing our

  19. 0:34

    own custom traces and we'll look at some

  20. 0:36

    awesome upcoming features in angular

  21. 0:38

    fire to integrate with angular and rxjs

  22. 0:40

    if you're new here like and subscribe

  23. 0:42

    and make sure to download the mobile app

  24. 0:43

    on iOS or Android to take the firebase

  25. 0:45

    performance quiz after you're done

  26. 0:47

    watching this video now there's a few

  27. 0:48

    different ways we can use firebase

  28. 0:50

    performance the most basic way is to use

  29. 0:52

    it as just a standalone tool in an

  30. 0:54

    existing website this approach will

  31. 0:56

    insert a lightweight script into your

  32. 0:57

    HTML document and then you'll

  33. 0:59

    automatically get all kinds of

  34. 1:00

    performance reporting on the firebase

  35. 1:01

    console so this is a great option if you

  36. 1:03

    have an existing website and you want

  37. 1:05

    some performance reporting but you don't

  38. 1:06

    want to use any other fighter based

  39. 1:07

    products the next option is to use it in

  40. 1:09

    combination with firebase hosting if

  41. 1:11

    you're already using firebase hosting

  42. 1:13

    you can use these magic script tags to

  43. 1:15

    easily import it into your project but I

  44. 1:17

    think the vast majority of people will

  45. 1:18

    use it in combination with a module

  46. 1:20

    bundle or like web pack that's how we're

  47. 1:22

    going to use it today in the context of

  48. 1:23

    an angular application but the process

  49. 1:25

    is very similar for all JavaScript

  50. 1:27

    frameworks the first thing I want to do

  51. 1:28

    is install the latest version of

  52. 1:30

    firebase making sure that it's version

  53. 1:31

    6.0 or greater now most of the code that

  54. 1:34

    we'll look at is relevant to any

  55. 1:35

    JavaScript app but at the end of the

  56. 1:37

    video we're going to look at some really

  57. 1:38

    cool new bleeding edge stuff from the

  58. 1:40

    angularfire library at the time of this

  59. 1:42

    video you can use it by installing an

  60. 1:43

    angular fire with the next tag from

  61. 1:45

    there you'll want to go to the firebase

  62. 1:47

    console and go to the Settings tab and

  63. 1:49

    you'll see an option to now add your app

  64. 1:51

    as a web app you'll want to do this even

  65. 1:52

    if you have an existing app because

  66. 1:54

    there's a new property that you need to

  67. 1:55

    have in your firebase config in order to

  68. 1:57

    work with firebase performance that

  69. 1:59

    property is the app ID which you can see