Skip to content

Commit b619ad1

Browse files
committed
feat: Add Reading Times to Featured Articles
1 parent 194ae64 commit b619ad1

17 files changed

Lines changed: 18 additions & 0 deletions

_layouts/post.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
<ins>(last updated on <time datetime="{{ page.last_modified_at | date_to_xmlschema }}" itemprop=dateModified>{{ page.last_modified_at | date: "%-d %B, %Y" }}</time>)</ins>
2323
{% endif %}
2424

25+
{% if page.reading-time %} • {{page.reading-time}} minute read{% endif %}
26+
2527
</p>
2628

2729
<h1 itemprop="name headline" elementtiming=page-title style="view-transition-name: x-{{ page.date | date: '%Y-%m-%d' }}">{{ page.title }}</h1>

_posts/2018-11-09-css-and-network-performance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ date: 2018-11-09 19:57:12
55
categories: Web Development
66
meta: "How can CSS impact network and resource-loading performance? Can things
77
be that serious?"
8+
reading-time: 12
89
faq:
910
- question: "Can CSS affect network performance?"
1011
answer: "Yes. CSS can delay rendering, block later requests, and influence how quickly the browser discovers and prioritises other resources."

_posts/2019-03-04-cache-control-for-civilians.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ date: 2019-03-04 01:21:39
55
last_modified_at: 2025-06-05
66
categories: Web Development
77
meta: "What does Cache-Control really do? In basic terms? Let’s find out!"
8+
reading-time: 17
89
faq:
910
- question: "What does Cache-Control do?"
1011
answer: "Cache-Control tells browsers and intermediary caches how a response should be stored, how long it can be reused for, and when it needs to be revalidated."

_posts/2019-08-08-time-to-first-byte-what-it-is-and-why-it-matters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: "Time to First Byte: What It Is and How to Improve It"
44
date: 2019-08-08 02:06:56
55
categories: Web Development
66
meta: "Just how much does TTFB matter when it comes to front-end performance?"
7+
reading-time: 6
78
faq:
89
- question: "What is Time to First Byte?"
910
answer: "Time to First Byte measures how long it takes from making a request until the first byte of the response arrives back from the server."

_posts/2020-05-19-the-fastest-google-fonts.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ date: 2020-05-19 17:35:04
55
categories: Web Development
66
main: "https://csswizardry.com/wp-content/uploads/2020/05/filmstrip-foit.png"
77
meta: "Google Fonts is fast. Now it’s faster. Much faster."
8+
reading-time: 15
89
faq:
910
- question: "What is the fastest way to load Google Fonts?"
1011
answer: "It depends on the trade-offs you want, but strong options include reducing the number of files requested, using the right loading strategy, and adding supporting hints such as preconnect or preload where appropriate."

_posts/2021-02-26-measuring-network-performance-in-mobile-safari.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ date: 2021-02-26 01:41:12
55
categories: Web Development
66
main: "https://res.cloudinary.com/csswizardry/image/fetch/f_auto,q_auto/https://csswizardry.com/wp-content/uploads/2021/02/inspecting-safari-02.png"
77
meta: "How often do you test your site in iOS Safari? Do you even know how?!"
8+
reading-time: 6
89
faq:
910
- question: "How can I test web performance in iOS Safari?"
1011
answer: "A reliable approach is to use a real iPhone and inspect it through Safari’s developer tools on a Mac, or use WebPageTest where appropriate."

_posts/2022-03-28-optimising-largest-contentful-paint.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ date: 2022-03-28 23:02:11
55
categories: Web Development
66
main: "https://res.cloudinary.com/csswizardry/image/fetch/f_auto,q_auto/https://csswizardry.com/wp-content/uploads/2022/03/chart-full.png"
77
meta: "Let’s look at some more technical and non-obvious aspects of optimising Largest Contentful Paint"
8+
reading-time: 11
89
faq:
910
- question: "What is Largest Contentful Paint?"
1011
answer: "Largest Contentful Paint is a Core Web Vitals metric that measures when the largest visible content element in the viewport finishes rendering."

_posts/2023-07-01-in-defence-of-domcontentloaded.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ date: 2023-07-01 00:01:19
55
categories: Web Development
66
main: "https://csswizardry.com/wp-content/uploads/2023/06/devtools-dcl.png"
77
meta: "Is there any reason to still measure the DOMContentLoaded event? Perhaps…"
8+
reading-time: 10
89
faq:
910
- question: "What is DOMContentLoaded?"
1011
answer: "DOMContentLoaded is an internal browser event that fires once all deferred JavaScript has finished running."

_posts/2023-07-24-core-web-vitals-for-search-engine-optimisation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ date: 2023-07-24 00:00:00
55
categories: Web Development
66
main: "https://csswizardry.com/wp-content/uploads/2023/07/cwv-seo.png"
77
meta: "There’s still a lot of misunderstanding about CWV for SEO. Let’s work it out together."
8+
reading-time: 23
89
faq:
910
- question: "Do Core Web Vitals affect SEO?"
1011
answer: "Yes, but only modestly. Core Web Vitals are a ranking signal, not the dominant factor, and they rarely outweigh stronger content or relevance."

_posts/2023-09-28-the-ultimate-lqip-lcp-technique.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ last_modified_at: 2025-09-05
66
categories: Web Development
77
main: "https://csswizardry.com/wp-content/uploads/2023/09/csswizardry.com-lcp.jpg"
88
meta: "Can Low-Quality Image Placeholders and LCP play nicely together?"
9+
reading-time: 12
910
faq:
1011
- question: "Can low-quality image placeholders hurt LCP?"
1112
answer: "Yes. If implemented badly, LQIPs can delay or interfere with the real Largest Contentful Paint candidate and make the metric worse."

0 commit comments

Comments
 (0)