Check out a free preview of the full JavaScript Performance course

The "Q&A" Lesson is part of the full, JavaScript Performance course featured in this preview video. Here's what you'd learn in this lesson:

Steve answers questions from the audience.

Preview
Close

Transcript from the "Q&A" Lesson

[00:00:00]
>> Steve Kinney: Question is, can you stack multiple cache control strategies in the header? My gut says no. I also realize that I have never attempted to. So I can't provide a really good answer, but my initial gut says I don't think you can.
>> Speaker 2: Someone test it.
>> Steve Kinney: Someone test it, keep recording.

[00:00:26]
[LAUGH]
>> Steve Kinney: Any other questions? Yeah.
>> Speaker 3: Maybe you don't know off the top of your head, but just curious, on either send grid or a previous project. Do you have a favorite sort of performance accomplishment or task you've made that comes to mind?
>> Steve Kinney: I think one of the most important ones, cuz it precedes all other ones, is getting the metrics in the first place.

[00:00:58]
Like figuring out the state of the world and being able to you know this, figuring out these actions, what are important action and figuring out how long they take and starting to set those. Either performance budget, right, if you don't want it to get worse, or performance goals.

[00:01:11]
That's a nontrivial task. Trying to get those measurements, cracking open the [INAUDIBLE] and getting all those numbers. It's the first step. It's usually stuff that doesn't exist in most applications. Patience, right? Like nobody's done it, thereby it's not a thing, right? Feels fine on my computer, [LAUGH] right?

[00:01:29]
Is the biggest thing. So like going ahead and using like the user timing API to like get some raw numbers, I think is really like the kind of like first. Cuz after that you can get the buy in around it, right? And like, Chrome has some interesting features now, that work different.

[00:01:46]
Like they don't work super well on my app because we have to log in, stuff like that but they actually show you your app versus your competitors. That's usually helpful for getting buy in. That's a relatively new one. There's another one in Chrome specifically, will show you code coverage, right?

[00:02:05]
Which means it'll load up all your code, you click around your app, and it'll show you lines of code that were never executed, right? And so like starting to get those metrics, starting to get like these, if I have like, let's make the app go faster! It's like great, everyone's like yeah!

[00:02:17]
And then nothing happens, right? Cuz like there's no like, here's the first thing to do, right? So I think that's the kind of most important part, right? Cuz like, once you kind of like build that into the culture that everyone kind of cares about, it becomes a lot easier to get all this stuff done.

[00:02:31]
And it's almost impossible to do before you build that. So it's kind of maybe not the answer you're looking for. But if you're asking what's the one I'm proudest of, like starting to implement those metrics and kind of getting the culture of performance in place.
>> Speaker 2: Thank you, that's great.

[00:02:47]
>> Steve Kinney: Anything else? Cool, thank you so much, everyone. [APPLAUSE]

Learn Straight from the Experts Who Shape the Modern Web

  • In-depth Courses
  • Industry Leading Experts
  • Learning Paths
  • Live Interactive Workshops
Get Unlimited Access Now