Skip to content

Commit 9bd9e7f

Browse files
committed
Add marks for compression experiment
1 parent 58dfe8d commit 9bd9e7f

7 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎_includes/header--masthead.html‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@
1111

1212
{% include ribbon.html %}
1313

14+
<script>performance.mark('beforeIMG')</script>
1415
<header class="page-head page-head--masthead" elementtiming=masthead>
1516

1617
<div class=wrapper>
1718

1819
{% include nav.html %}
1920

21+
<script>performance.mark('beforeH1')</script>
2022
<h1 class=page-head__text elementtiming=mastheadTitle>{{ page.masthead-title }}</h1>
2123

2224
<h2 class=hide>Proven results improving Core Web Vitals for world-leading organisations.</h2>

‎_layouts/page.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<main class="layout__item desk-three-fifths" data-ui-component="Main content" id="section:main">
1111
<script>performance.mark('contentStart')</script>
1212

13+
<script>performance.mark('beforeH1')</script>
1314
<h1 elementtiming="page-title">{{ page.title }}</h1>
1415

1516
{% if page.path contains ".md" %}

‎_layouts/post.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
</p>
3636

37+
<script>performance.mark('beforeH1')</script>
3738
<h1 itemprop="name headline" elementtiming=page-title style="view-transition-name: x-{{ page.date | date: '%Y-%m-%d' }}">{{ page.title }}</h1>
3839

3940
<p class=hide>Written by <b itemprop=author>Harry Roberts</b> on <b itemprop=publisher>CSS Wizardry</b>.</p>

‎about.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ teams around the world. Heard enough?
2727

2828
<a href="/contact/" class="btn btn--full btn--positive">Hire me!</a>
2929

30+
<script>performance.mark('beforeIMG')</script>
3031
<figure>
3132
<img src="/img/content/about.jpg"
3233
alt="Harry Roberts leading a web performance workshop at Digital Labin 2022, standing in front of a group of attendees and speaking with animated hand gestures against a concrete and tiled backdrop."

‎consultancy.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ issues. Together, we answer questions such as:
5555

5656
It’s my job to help you find the answers.
5757

58+
<script>performance.mark('beforeIMG')</script>
5859
<figure>
5960
<img src="/img/content/consultancy.jpg"
6061
alt=""

‎speaking.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ I’ve spoken at [over one-hundred conferences](#section:past-events). Sharing
1414
practical knowledge is one of my key motivations. It’s also a large part of why
1515
I became a consultant in the first place — I love to help.
1616

17+
<script>performance.mark('beforeIMG')</script>
1718
<figure>
1819
<img src="/img/content/perfnow-2024.jpg"
1920
alt="Harry Roberts delivering a keynote on stage at performance.now() 2024 in Amsterdam, photographed mid-talk in front of a large projected slide."

‎workshops.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ With a 99% approval rating, my workshops are not your typical corporate training
2626
session. They’re intense, intensive, and packed with real-world, practical
2727
insights. I’m a teacher who _does_.
2828

29+
<script>performance.mark('beforeIMG')</script>
2930
<figure>
3031
<img src="/img/content/workshops.jpg"
3132
alt=""

0 commit comments

Comments
 (0)