Skip to content

Commit

Permalink
Merge branch 'main' of github.com:HTTPArchive/almanac.httparchive.org…
Browse files Browse the repository at this point in the history
… into production
  • Loading branch information
tunetheweb committed Nov 11, 2024
2 parents c95a3d9 + d79b7d6 commit 9e47795
Show file tree
Hide file tree
Showing 27 changed files with 62 additions and 36 deletions.
28 changes: 14 additions & 14 deletions src/config/last_updated.json
Original file line number Diff line number Diff line change
Expand Up @@ -754,22 +754,22 @@
"en/2024/chapters/accessibility.html": {
"date_published": "2024-11-11T00:00:00.000Z",
"date_modified": "2024-11-11T00:00:00.000Z",
"hash": "92834a33d14c02227127a71ef2444a67"
"hash": "8ad966915429881813271d6c09e2342b"
},
"en/2024/chapters/cdn.html": {
"date_published": "2024-11-11T00:00:00.000Z",
"date_modified": "2024-11-11T00:00:00.000Z",
"hash": "fd8a3c9227f306960b9bcbdc30fa4f8c"
"hash": "f2fe245243607ac9db40d76e42f3d498"
},
"en/2024/chapters/cms.html": {
"date_published": "2024-11-11T00:00:00.000Z",
"date_modified": "2024-11-11T00:00:00.000Z",
"hash": "c1822c857a7d89ff99ce9acbe4f94feb"
"hash": "43e576c5549a25c129f969eefeb3a846"
},
"en/2024/chapters/cookies.html": {
"date_published": "2024-11-11T00:00:00.000Z",
"date_modified": "2024-11-11T00:00:00.000Z",
"hash": "61035fdae8a7d0634b16bdc99d9c6699"
"hash": "871a62b97261e05d8e6b9276ea799f48"
},
"en/2024/chapters/css.html": {
"date_published": "2024-11-11T00:00:00.000Z",
Expand All @@ -779,22 +779,22 @@
"en/2024/chapters/ecommerce.html": {
"date_published": "2024-11-11T00:00:00.000Z",
"date_modified": "2024-11-11T00:00:00.000Z",
"hash": "7f127258daa7bfd86934e1620200cef9"
"hash": "d5915e740ecb59a322dcd6fdc6d2fcbc"
},
"en/2024/chapters/fonts.html": {
"date_published": "2024-11-11T00:00:00.000Z",
"date_modified": "2024-11-11T00:00:00.000Z",
"hash": "7e591ad54d7a887274c701b06bdfaca5"
"hash": "2e86d7ccf6eeda856b7f6e559978c458"
},
"en/2024/chapters/http.html": {
"date_published": "2024-11-11T00:00:00.000Z",
"date_modified": "2024-11-11T00:00:00.000Z",
"hash": "ab4ceac43ef78578c68572db840aa0ad"
"hash": "76f8a3d67872080da26d78506013d98a"
},
"en/2024/chapters/jamstack.html": {
"date_published": "2024-11-11T00:00:00.000Z",
"date_modified": "2024-11-11T00:00:00.000Z",
"hash": "4ef06e2ee87d70cdb4c5ce4ec90882d3"
"hash": "53d8e184605ad3267eb8ee534de436f8"
},
"en/2024/chapters/javascript.html": {
"date_published": "2024-11-11T00:00:00.000Z",
Expand All @@ -804,7 +804,7 @@
"en/2024/chapters/markup.html": {
"date_published": "2024-11-11T00:00:00.000Z",
"date_modified": "2024-11-11T00:00:00.000Z",
"hash": "0e69e8e0e36e8962d527fcc599fd851f"
"hash": "3da3e8a701e6efb45dde7f3f22587d5f"
},
"en/2024/chapters/media.html": {
"date_published": "2024-11-11T00:00:00.000Z",
Expand All @@ -824,7 +824,7 @@
"en/2024/chapters/performance.html": {
"date_published": "2024-11-11T00:00:00.000Z",
"date_modified": "2024-11-11T00:00:00.000Z",
"hash": "29cd37e317c8e9ff340313a56b2d5c8c"
"hash": "efe893e4771f62d519e05f77742f726d"
},
"en/2024/chapters/privacy.html": {
"date_published": "2024-11-11T00:00:00.000Z",
Expand All @@ -834,7 +834,7 @@
"en/2024/chapters/security.html": {
"date_published": "2024-11-11T00:00:00.000Z",
"date_modified": "2024-11-11T00:00:00.000Z",
"hash": "4766b45c98de8476e1c33cf8f163086c"
"hash": "5c3a5e8c9eefc2f2e0ad23f1256f0e6c"
},
"en/2024/chapters/seo.html": {
"date_published": "2024-11-11T00:00:00.000Z",
Expand All @@ -844,12 +844,12 @@
"en/2024/chapters/structured-data.html": {
"date_published": "2024-11-11T00:00:00.000Z",
"date_modified": "2024-11-11T00:00:00.000Z",
"hash": "d84ce31c9e1bfe7d7b0407b3afa7772c"
"hash": "57fde492aa546c2c6e203018c76a0054"
},
"en/2024/chapters/sustainability.html": {
"date_published": "2024-11-11T00:00:00.000Z",
"date_modified": "2024-11-11T00:00:00.000Z",
"hash": "e6c7e0c2cb6c71a8b045af5d20af0604"
"hash": "7325edc6c9bef2da3568cbcbd1fb2584"
},
"en/2024/chapters/third-parties.html": {
"date_published": "2024-11-11T00:00:00.000Z",
Expand All @@ -874,7 +874,7 @@
"en/2024/methodology.html": {
"date_published": "2024-11-11T00:00:00.000Z",
"date_modified": "2024-11-11T00:00:00.000Z",
"hash": "a8d969a16757fcc95c63ef808d65eb79"
"hash": "80e8c8d8c0ba9586e37a8edf902360f4"
},
"en/2024/table_of_contents.html": {
"date_published": "2024-11-11T00:00:00.000Z",
Expand Down
1 change: 1 addition & 0 deletions src/content/en/2024/accessibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ featured_stat_2: 0.1%
featured_stat_label_2: Sites with `<audio>` elements include a `<track>` element.
featured_stat_3: 57%
featured_stat_label_3: Mobile sites passing the Lighthouse audit for properly ordered headings.
doi: 10.5281/zenodo.14063775
---

## Introduction
Expand Down
1 change: 1 addition & 0 deletions src/content/en/2024/cdn.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ featured_stat_2: 3x
featured_stat_label_2: Faster TLS negotiation with CDN at p90
featured_stat_3: 56s%
featured_stat_label_3: Domains using Brotli via CDNs
doi: 10.5281/zenodo.14065633
---

## Introduction
Expand Down
1 change: 1 addition & 0 deletions src/content/en/2024/cms.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ featured_stat_2: 49%
featured_stat_label_2: Percent of mobile sites using a CMS.
featured_stat_3: 72%
featured_stat_label_3: Percent of CMS market share that is WordPress
doi: 10.5281/zenodo.14065528
---

In this chapter, we interpret the evolving landscape of the Content Management System (CMS) and its increasing influence on how users experience content on the web. We aim to explore both the broader CMS ecosystem and the unique characteristics of web pages created through these platforms.
Expand Down
1 change: 1 addition & 0 deletions src/content/en/2024/cookies.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ featured_stat_2: 11%
featured_stat_label_2: First-party desktop cookies having `SameSite=None`
featured_stat_3: 6%
featured_stat_label_3: Third-party cookies that are partitioned (CHIPS)
doi: 10.5281/zenodo.14065903
---

## Introduction
Expand Down
1 change: 1 addition & 0 deletions src/content/en/2024/ecommerce.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ featured_stat_2: 37%
featured_stat_label_2: Percent of ecommerce sites built with WooCommerce.
featured_stat_3: 3.5%
featured_stat_label_3: Percent of sites offering PayPal as payment method
doi: 10.5281/zenodo.14065664
---

## Introduction
Expand Down
1 change: 1 addition & 0 deletions src/content/en/2024/fonts.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ featured_stat_2: 55%
featured_stat_label_2: Fonts supporting OpenType features.
featured_stat_3: 34%
featured_stat_label_3: Percentage of pages using variable fonts.
doi: 10.5281/zenodo.14065682
---

## Introduction
Expand Down
1 change: 1 addition & 0 deletions src/content/en/2024/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ featured_stat_2:
featured_stat_label_2:
featured_stat_3:
featured_stat_label_3:
doi: 10.5281/zenodo.14065825
---
1 change: 1 addition & 0 deletions src/content/en/2024/jamstack.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ featured_stat_label_2: Growth of Astro for Prerendered sites in 2024
featured_stat_3: 42%
featured_stat_label_3: Percentage less JavaScript Prerendered sites use than Dyanmic sites.
mikeneu_bio: Mike Neumegen passionate about building a web that's accessible, fast, simple, and secure and grounded in strong fundamentals. He's the co-founder of <a hreflang="en" href="https://cloudcannon.com/">CloudCannon</a>, a content management platform that brings Git-based workflows to content editors.
doi: 10.5281/zenodo.14065579
---

## Introduction
Expand Down
1 change: 1 addition & 0 deletions src/content/en/2024/markup.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ featured_stat_2: 32 MB
featured_stat_label_2: Median HTML document transfer size
featured_stat_3: 29%
featured_stat_label_3: Elements that are `div`s
doi: 10.5281/zenodo.14065478
---

## Introduction
Expand Down
1 change: 1 addition & 0 deletions src/content/en/2024/performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ featured_stat_2: 15%
featured_stat_label_2: of websites still use unnecessary lazy-loading on LCP elements.
featured_stat_3: 13%
featured_stat_label_3: the percentage by which good CWV scores are higher on secondary pages compared to homepages for mobile websites.
doi: 10.5281/zenodo.14065738
---

## Introduction
Expand Down
1 change: 1 addition & 0 deletions src/content/en/2024/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ featured_stat_2: +27%
featured_stat_label_2: Increase in the adoption of the Content-Security-Policy header
featured_stat_3: 23%
featured_stat_label_3: Percentage of desktop sites using Subresource Integrity
doi: 10.5281/zenodo.14065805
---

## Introduction
Expand Down
1 change: 1 addition & 0 deletions src/content/en/2024/structured-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ featured_stat_2:
featured_stat_label_2:
featured_stat_3:
featured_stat_label_3:
doi: 10.5281/zenodo.14065771
---
1 change: 1 addition & 0 deletions src/content/en/2024/sustainability.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ featured_stat_2: 1.36
featured_stat_label_2: GHG emissions (g eqCO2) for the 90th percentile web pages on mobile
featured_stat_3: 25%
featured_stat_label_3: Mobile websites not using cache at all
doi: 10.5281/zenodo.14065377
---

## Introduction
Expand Down
Binary file modified src/static/images/2024/security/server-timing-headers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/images/home-hero-2024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/templates/base/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ <h2>{{ self.intro_sub_title() }}</h2>
<svg viewBox="0 0 56 16">
<text x="9" y="15">{{ year }}</text>
</svg>
{% elif year == "2024" %}
<svg viewBox="0 0 57 16">
<text x="9" y="15">{{ year }}</text>
</svg>
{% elif year != "2020" %}
<svg viewBox="0 0 50 16">
<text x="8" y="15">{{ year }}</text>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/en/2024/base.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "%s/base.html" % lang %}

{% block methodology_stat_1 %}16.9M{% endblock %}
{% block methodology_stat_2 %}82.61 TB{% endblock %}
{% block methodology_stat_2 %}83 TB{% endblock %}
{% block total_websites %}nearly 17 million{% endblock %}
{% block dataset %}June 2024{% endblock %}

Expand Down
35 changes: 22 additions & 13 deletions src/templates/en/2024/methodology.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,22 +91,31 @@ <h2 id="dataset"><a href="#dataset" class="anchor-link">About the dataset</a></h
<div class="code-block floating-card">
{# To generate this markup temporarily add a ```sql code block to a chapter and generate that chapter and you&#8217;ll get the HTML #}
{# Note extra attributes on pre tag to allow keyboard scroll so add them back in #}
{# TODO - update this to new dataset #}
<pre class="hidden" role="region" aria-label="bytes_2022.sql" tabindex="0"><code class="sql language-sql"><span class="comment">#standardSQL</span>
<span class="comment"># Sum of JS request bytes per page (2024)</span>
<span class="keyword">SELECT</span>
percentile,
_TABLE_SUFFIX <span class="keyword">AS</span> client,
<span class="function call">APPROX_QUANTILES</span>(bytesJs / <span class="constant numeric">1024</span>, <span class="constant numeric">1000</span>)[<span class="function call">OFFSET</span>(percentile <span class="keyword operator">*</span> <span class="constant numeric">10</span>)] <span class="keyword">AS</span> js_kilobytes
<span class="keyword">FROM</span>
<span class="string">`httparchive.summary_pages.2024_06_01_*`</span>,
<span class="function call">UNNEST</span>([<span class="constant numeric">10</span>, <span class="constant numeric">25</span>, <span class="constant numeric">50</span>, <span class="constant numeric">75</span>, <span class="constant numeric">90</span>, <span class="constant numeric">100</span>]) <span class="keyword">AS</span> percentile
<pre role="region" aria-label="color-contrast.sql" tabindex="0"><code class="sql language-sql"><span class="keyword">SELECT</span>
client,
is_root_page,
<span class="function call">COUNTIF</span>(color_contrast_score <span class="keyword">IS</span> <span class="keyword">NOT</span> <span class="keyword">NULL</span>) <span class="keyword">AS</span> total_applicable,
<span class="function call">COUNTIF</span>(<span class="function call">CAST</span>(color_contrast_score <span class="keyword">AS</span> <span class="keyword">NUMERIC</span>) <span class="keyword operator">=</span> <span class="constant numeric">1</span>) <span class="keyword">AS</span> total_good_contrast,
<span class="function call">COUNTIF</span>(<span class="function call">CAST</span>(color_contrast_score <span class="keyword">AS</span> <span class="keyword">NUMERIC</span>) <span class="keyword operator">=</span> <span class="constant numeric">1</span>) / <span class="function call">COUNTIF</span>(color_contrast_score <span class="keyword">IS</span> <span class="keyword">NOT</span> <span class="keyword">NULL</span>) <span class="keyword">AS</span> perc_good_contrast
<span class="keyword">FROM</span> (
<span class="keyword">SELECT</span>
client,
is_root_page,
<span class="keyword">date</span>,
<span class="function call">JSON_VALUE</span>(lighthouse, <span class="string">'$.audits.color-contrast.score'</span>) <span class="keyword">AS</span> color_contrast_score
<span class="keyword">FROM</span>
<span class="string">`httparchive.all.pages`</span>
<span class="keyword">WHERE</span>
<span class="keyword">date</span> <span class="keyword operator">=</span> <span class="string">'2024-06-01'</span>
)
<span class="keyword">GROUP</span> <span class="keyword">BY</span>
percentile,
client
client,
is_root_page,
<span class="keyword">date</span>
<span class="keyword">ORDER</span> <span class="keyword">BY</span>
client,
percentile</code></pre></div>
is_root_page;</code></pre>
</div>

<p>
Results for each metric are publicly viewable in chapter-specific spreadsheets, for example <a href="https://docs.google.com/spreadsheets/d/16isMe5_rvmRmJHtK5Je66AhwO8SowGgq0EFqXyjEXw8/edit?gid=1778117656#gid=1778117656">JavaScript results</a>. Links to the raw results and queries are available at the bottom of each chapter. Metric-specific results and queries are also linked directly from each figure.
Expand Down
2 changes: 1 addition & 1 deletion src/templates/hi/2024/base.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "%s/base.html" % lang %}

{% block methodology_stat_1 %}16.9M{% endblock %}
{% block methodology_stat_2 %}82.61 TB{% endblock %}
{% block methodology_stat_2 %}83 TB{% endblock %}
{% block total_websites %}लगभग 8 मिलियन{% endblock %}
{% block dataset %}जून 2024{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion src/templates/it/2024/base.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "%s/base.html" % lang %}

{% block methodology_stat_1 %}16.9M{% endblock %}
{% block methodology_stat_2 %}82.61 TB{% endblock %}
{% block methodology_stat_2 %}83 TB{% endblock %}
{% block total_websites %}quasi 8,4 milioni{% endblock %}
{% block dataset %}giugno 2024{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion src/templates/ja/2024/base.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "%s/base.html" % lang %}

{% block methodology_stat_1 %}16.9M{% endblock %}
{% block methodology_stat_2 %}82.61 TB{% endblock %}
{% block methodology_stat_2 %}83 TB{% endblock %}
{% block total_websites %}約840万の{% endblock %}
{% block dataset %}2024年6{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion src/templates/nl/2024/base.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "%s/base.html" % lang %}

{% block methodology_stat_1 %}16.9M{% endblock %}
{% block methodology_stat_2 %}82.61 TB{% endblock %}
{% block methodology_stat_2 %}83 TB{% endblock %}
{% block total_websites %}bijna 8,4 miljoen{% endblock %}
{% block dataset %}juni 2024{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion src/templates/pt/2024/base.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "%s/base.html" % lang %}

{% block methodology_stat_1 %}16.9M{% endblock %}
{% block methodology_stat_2 %}82.61 TB{% endblock %}
{% block methodology_stat_2 %}83 TB{% endblock %}
{% block total_websites %}cerca de 17 milhões{% endblock %}
{% block dataset %}junho de 2024{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion src/templates/tr/2024/base.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "%s/base.html" % lang %}

{% block methodology_stat_1 %}16.9M{% endblock %}
{% block methodology_stat_2 %}82.61 TB{% endblock %}
{% block methodology_stat_2 %}83 TB{% endblock %}
{% block total_websites %}yaklaşık 17 milyon{% endblock %}
{% block dataset %}Haziran 2024{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion src/templates/zh-CN/2024/base.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "%s/base.html" % lang %}

{% block methodology_stat_1 %}16.9M{% endblock %}
{% block methodology_stat_2 %}82.61 TB{% endblock %}
{% block methodology_stat_2 %}83 TB{% endblock %}
{% block total_websites %}大约840万个{% endblock %}
{% block dataset %}2024年6{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion src/templates/zh-TW/2024/base.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "%s/base.html" % lang %}

{% block methodology_stat_1 %}16.9 M{% endblock %}
{% block methodology_stat_2 %}82.61 TB{% endblock %}
{% block methodology_stat_2 %}83 TB{% endblock %}
{% block total_websites %}近17百萬{% endblock %}
{% block dataset %}2024年6{% endblock %}

Expand Down

0 comments on commit 9e47795

Please sign in to comment.