almanac.httparchive.org icon indicating copy to clipboard operation
almanac.httparchive.org copied to clipboard

Fonts 2024 Queries

Open IvanUkhov opened this issue 1 year ago • 4 comments

In this PR, the queries from 2022 are copied to 2024 and are updated as follows:

Changes

  • The data source is exclusively httparchive.all.
  • All queries are annotated with the question they answer.
  • All queries follow the same structure and style.
  • Queries are split by the section in the chapter where they are used.
  • Repeated parts are extracted into common functions.

Structure

The queries are split by the section where they are used:

  • design/ is about foundries and families,
  • development/ is about tools and technologies, and
  • performance/ is about hosting and serving.

Each file name starts with one of the following prefixes indicating the primary subject of the corresponding analysis:

  • fonts_ is about font files,
  • pages_ is about HTML pages,
  • scripts_ is about JavaScript scripts, and
  • styles_ is about CSS style sheets.

The prefix is followed by the property studied given in singular, potentially extended one or several suffixes narrowing down the scope, as in fonts_size_by_table.sql and pages_link_relation.sql.

Contents

Each query starts with a preamble indicating the section, question, and normalization type:

-- Section: Performance
-- Question: What is the distribution of the file size broken down by table?
-- Normalization: Sites

Many queries rely on temporary functions for convenience and clarity. The functions appear in several queries are extracted into a common file: common.sql. Whenever any of the functions defined in common.sql is used by a query, the query has the following line at the top:

-- INCLUDE ../common.sql

It signalizes that, prior to executing the query, common.sql has to be inlined.

IvanUkhov avatar Jul 01 '24 14:07 IvanUkhov

What's the difference between this one and #3667 ?

tunetheweb avatar Aug 14 '24 12:08 tunetheweb

As I explained there, I did not notice there was a PR open and created a new one. And even if I did, I would probably have to do that anyway to have more control. In that other PR, the queries from 2022 are copied over to the folder for 2024 with no change. So there is no progress there.

IvanUkhov avatar Aug 14 '24 12:08 IvanUkhov

Are all the force-pushes intentionally? image Clicking on my notifications I see this which is a bit annoying.

JannisBush avatar Sep 26 '24 09:09 JannisBush

Let me know when good to merge.

tunetheweb avatar Oct 09 '24 16:10 tunetheweb

@tunetheweb, Bram and I concluded that it can be merged now. Thank you.

IvanUkhov avatar Oct 30 '24 10:10 IvanUkhov