pandorga 1.6.2 → 1.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a47af06e13cc8cf5264887f7ea3236ada5a5eb2f78b357c19861b30a6493ae55
4
- data.tar.gz: 9e155005f14faf4a30d2095f8409d655d105b32528cda1fdec14c5a4488aea2a
3
+ metadata.gz: 107838b82bee49181ddb10435ed0ab5726579fda06fe0bc0e5399ce0f17f86ad
4
+ data.tar.gz: f8e893a43d87ed1b846a522cef98b2314c56efdfd304804354458d6c5ae9e0be
5
5
  SHA512:
6
- metadata.gz: df895fc4b0d63410a5c620b73c7e842c045743e0de76514345176d55c3cbf771a2af251748976b8efee410f0cbd58e8f5c6ccf30ead7a832b3df4d1c16a35a9c
7
- data.tar.gz: dc6321d8dc00e651fe8fcc2fdd61b8d78f45d730225d2f7100cd1e70fe9761c48c713fe9ca1d709b2c1cd8bb699bdd42df2f8b9bd6da4d05087c85a8bccd7d7b
6
+ metadata.gz: df29223d7d858b285e1b1e9cf991cd3362e192895fdbcbded93c3f2cc7991f7594779b45ee5a04d7c840ac7279cf26eb23bb704b25b55f17ab7b95d4a483743d
7
+ data.tar.gz: 1e1ac9acc5c296025106b85da0bc4535ca67a3bf72061932dbffc1273f027f66d69666dc17f265eb40d9298b37b99cdf23cef2476c510a9cd1e4862a5b965bd0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.6.3] — 2026-10-10
4
+
5
+ ### Fixed
6
+
7
+ - The Google Fonts stylesheet is linked with the ledger sheets again. In
8
+ 1.6.2 it sat above the preload script, and that script cannot run until
9
+ earlier stylesheets finish, so first paint waited on fonts.googleapis.com.
10
+ The font hosts are still preconnected before that script. The static
11
+ summary and the serif fallback are unchanged.
12
+
13
+ No `pandorga:` config keys were added or renamed.
14
+
3
15
  ## [1.6.2] — 2026-10-10
4
16
 
5
17
  ### Fixed
data/_layouts/shell.html CHANGED
@@ -58,9 +58,14 @@
58
58
  <meta name="twitter:image" content="{{ og_image_url }}" />
59
59
  <!-- Canonical URL -->
60
60
  <link rel="canonical" href="{{ canonical_path | absolute_url }}" />
61
+ {%- comment -%}
62
+ Preconnect only. font-loader's stylesheet is render-blocking, and the
63
+ preload script below is parser-blocking. A stylesheet before that script
64
+ holds the parser until fonts.googleapis.com answers, so the ledger sheets
65
+ and the hero summary cannot paint. The face is linked with the other sheets.
66
+ {%- endcomment -%}
61
67
  <link href="https://fonts.googleapis.com" rel="preconnect" />
62
68
  <link crossorigin="" href="https://fonts.gstatic.com" rel="preconnect" />
63
- {% include theme/font-loader.html %}
64
69
  {% include theme/critical-preload.html %}
65
70
  <link rel="stylesheet" href="/assets/css/base.css" />
66
71
  <link rel="stylesheet" href="/assets/css/global-link.css" />
@@ -110,6 +115,7 @@
110
115
  {%- for _sheet in _ledger -%}
111
116
  <link rel="stylesheet" href="/assets/css/ledger/{{ _sheet }}.css" />
112
117
  {%- endfor -%}
118
+ {% include theme/font-loader.html %}
113
119
  <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap"
114
120
  rel="stylesheet" />
115
121
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/lipis/flag-icons@7.2.3/css/flag-icons.min.css" />
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pandorga
4
- VERSION = "1.6.2"
4
+ VERSION = "1.6.3"
5
5
  end
@@ -2,7 +2,9 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  # Hero summary is HTML at build time. The empty box and the sans fallback
5
- # were the home CLS. PLT-AC-23.
5
+ # were the home CLS. The font stylesheet must not precede the preload
6
+ # script: that script is parser-blocking, so a sheet above it holds first
7
+ # paint on fonts.googleapis.com. PLT-AC-23.
6
8
 
7
9
  require "pathname"
8
10
  require "tmpdir"
@@ -55,10 +57,12 @@ fail!("font stylesheet dropped display=swap") unless fonts.include?("&display=sw
55
57
 
56
58
  font_at = shell.index("theme/font-loader.html")
57
59
  base_at = shell.index('href="/assets/css/base.css"')
60
+ script_at = shell.index("theme/critical-preload.html")
58
61
  preconnect_at = shell.index("fonts.googleapis.com")
59
- fail!("font loader missing") unless font_at
60
- fail!("body face is requested after the ledger sheets") unless font_at < base_at
61
- fail!("font host is not preconnected before the stylesheet") unless preconnect_at && preconnect_at < font_at
62
+ fail!("font loader missing") unless font_at && script_at && base_at
63
+ fail!("font stylesheet precedes the preload script") unless script_at < font_at
64
+ fail!("font stylesheet precedes local CSS") unless base_at < font_at
65
+ fail!("font host is not preconnected before the preload script") unless preconnect_at && preconnect_at < script_at
62
66
  fail!("body fallback is still a sans") unless shared.include?('body_fallback: "Georgia, serif"')
63
67
 
64
68
  puts "PASS test-hero-summary"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pandorga
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Pandorga contributors