Skip to content

Commit f3bfeaa

Browse files
committed
Add alt text
1 parent afd882f commit f3bfeaa

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

_posts/2025-07-25-the-extensibility-api.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Note that `.mark()`’s useful property is `startTime` and `.measures()`’s is
6666
`duration`.
6767

6868
<figure>
69-
<img src="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-01.png" alt width="1500" height="891" loading="lazy">
69+
<img src="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-01.png" alt"Chrome DevTools Console view filtered using source:console-api to isolate user-generated performance logs." width="1500" height="891" loading="lazy">
7070
<figcaption>You can use <code>source:console-api</code> to scope your Console
7171
messages only to things logged to it. Much cleaner.</figcaption>
7272
</figure>
@@ -94,7 +94,7 @@ DevTools will automatically pick up these marks and measures, and display them
9494
in the _Timings_ track of the Performance panel:
9595

9696
<figure>
97-
<img src="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-02.png" alt width="1500" height="891" loading="lazy">
97+
<img src="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-02.png" alt="Chrome Performance panel showing User Timing entries cssTime, jsTime, and jsEnd added via performance.mark() and .measure()." width="1500" height="891" loading="lazy">
9898
<figcaption>Note that <code>cssTime</code> and <code>jsTime</code> take up
9999
a proportional amount of space to their duration, but <code>jsEnd</code>,
100100
a <code>.mark()</code>, takes up a thin sliver of the UI as it represents
@@ -134,7 +134,7 @@ Before we can do anything, in the Performance panel’s settings, we need to
134134
enable _Show custom tracks_:
135135

136136
<figure>
137-
<img src="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-03.png" alt width="1500" height="891" loading="lazy">
137+
<img src="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-03.png" alt="Settings panel in Chrome DevTools with the ‘Show custom tracks’ option enabled for using the Performance Extensibility API." width="1500" height="891" loading="lazy">
138138
<figcaption>Look in the Performance panel’s settings, not DevTools’ overall
139139
settings.</figcaption>
140140
</figure>
@@ -161,7 +161,7 @@ the Extensibility API for `performance.mark()`:
161161

162162

163163
<figure>
164-
<img src="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-04.png" alt width="1500" height="891" loading="lazy">
164+
<img src="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-04.png" alt="DevTools Performance panel showing a custom marker jsEnd added using the Extensibility API and styled with a custom colour." width="1500" height="891" loading="lazy">
165165
<figcaption>Look toward the top-right and note the light blue
166166
<code>jsEnd</code> marker. That’s the extended
167167
<code>performance.mark()</code> in action.</figcaption>
@@ -186,7 +186,7 @@ However, there are two major downsides thus far:
186186
resolution timing that we’d use a `.mark()` for in the first place:
187187

188188
<figure>
189-
<img src="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-05.png" alt width="1500" height="891" loading="lazy">
189+
<img src="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-05.png" alt="Chrome DevTools Summary pane missing timestamp details for a custom performance.mark() entry using the Extensibility API." width="1500" height="891" loading="lazy">
190190
<figcaption>The UI doesn’t surface any timestamp information anywhere. I find
191191
this pretty bizarre.</figcaption>
192192
</figure>
@@ -223,7 +223,7 @@ what this looks like.
223223
Hey! That’s pretty neat!
224224

225225
<figure>
226-
<img src="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-06.png" alt width="1500" height="891" loading="lazy">
226+
<img src="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-06.png" alt="Custom track labelled ‘CSS’ in Chrome DevTools Performance panel created using performance.measure() and the Extensibility API." width="1500" height="891" loading="lazy">
227227
</figure>
228228

229229
We now have our first custom track titled <q>CSS</q>, sourced from our `track:
@@ -260,7 +260,7 @@ performance.mark('jsEnd', {
260260
Notice that our `jsEnd` marker is now a dark pinky-purple:
261261

262262
<figure>
263-
<img src="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-07.png" alt width="1500" height="891" loading="lazy">
263+
<img src="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-07.png" alt="Marker text in the Performance panel replaced with tooltipText using the Extensibility API—note the absence of an actual tooltip." width="1500" height="891" loading="lazy">
264264
<figcaption>The top-right marker is now dark pink, which I guess maps to <code>secondary-dark</code>.</figcaption>
265265
</figure>
266266

@@ -286,7 +286,7 @@ The takeaway so far is that the Extensibility API is less useful for
286286
`performance.mark()`.
287287

288288
<figure>
289-
<img src="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-08.png" alt width="1500" height="891" loading="lazy">
289+
<img src="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-08.png" alt="Chrome DevTools Summary pane displaying custom metadata properties attached via the Extensibility API’s properties array." width="1500" height="891" loading="lazy">
290290
<figcaption>The <code>tooltipText</code> simply replaces the marker’s text and
291291
doesn’t actually create a tooltip.</figcaption>
292292
</figure>
@@ -314,7 +314,7 @@ Above, I’ve passed in almost-pointless data to illustrate the point, but I’m
314314
sure you can think of your own useful use-cases.
315315

316316
<figure>
317-
<img src="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-09.png" alt width="1500" height="891" loading="lazy">
317+
<img src="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-09.png" alt="Custom .measure() entry with tooltip, colour, and rich metadata shown in a dedicated CSS track using the Extensibility API." width="1500" height="891" loading="lazy">
318318
<figcaption>Note the custom data that now appears in the <i>Summary</i> pane.</figcaption>
319319
</figure>
320320

@@ -348,7 +348,7 @@ I’ve added a `color`, a `tooltipText`, and some made up metadata in
348348
API to grab these numbers for real. That code is in [the appendix](#appendix).
349349

350350
<figure>
351-
<img src="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-10.png" alt width="1500" height="891" loading="lazy">
351+
<img src="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-10.png" alt="Chrome Performance panel with grouped custom tracks for CSS and JS under ‘First Party’, showing cssTime and jsTime entries with full metadata." width="1500" height="891" loading="lazy">
352352
<figcaption>The <code>.measure()</code> actually gets a proper tooltip, and we
353353
have rich metadata in the <i>Summary</i> pane.</figcaption>
354354
</figure>

0 commit comments

Comments
 (0)