- Issue created by @joachim
- Status changed to Needs review
12 months ago 4:47pm 24 January 2024 - Open on Drupal.org βCore: 9.5.x + Environment: PHP 7.3 & MySQL 5.7last update
12 months ago Waiting for branch to pass - Status changed to RTBC
12 months ago 3:43pm 26 January 2024 - Status changed to Postponed: needs info
12 months ago 9:03pm 28 January 2024 - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Doesn't your CSS have a font-face declaration somewhere that also loads the font?
Is the issue that the font doesn't load AT ALL or that it doesn't preload?
If it doesn't load at all, I'm not sure this is the right fix. - π¬π§United Kingdom joachim
I don't know enough about front-end code to answer any of those questions, sorry!
Without this patch, the static version of the site gets 404 errors in the browser console for the fonts:
> GET http://bi-com-giotrif-static-tome.ddev.site/profiles/bihub/bi_gds_profil...
- Status changed to Closed: works as designed
12 months ago 1:41pm 29 January 2024 - π¬π§United Kingdom joachim
I've had some help from a front-end dev, and investigated some more.
The fonts that are referenced in the CSS files are correctly getting extracted in getCssAssets() and then exported.
The problem here was that the fonts referenced in the LINK tags are not the same ones that are used in CSS! They're not used at all in fact!
So this is a case of PEICPC (Problem Exists in Crappy Project Code).
Closing, and sorry for the noise.