Phase 2 perf : #termes en fragment charge a la demande, niveaux reseau (Network Information API) pour prechargement, images et carrousel
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cette révision appartient à :
1 Parent
5195e5b884
révision
3f8c39ba87
3 fichiers modifiés
+94
-5
Aucun fichier ne correspond à votre recherche
@@ -120,7 +120,7 @@ async function verify(manifest) {
|
||||
if (md5(body) !== manifest.files['index.html']) {
|
||||
throw new Error(`Vérification : le HTML servi ne correspond pas au build (encodage ${enc}).`);
|
||||
}
|
||||
for (const f of Object.keys(manifest.files).filter((f) => /^assets\/build\/[^/]+\.(css|js|woff2)$/.test(f))) {
|
||||
for (const f of Object.keys(manifest.files).filter((f) => /^assets\/build\/[^/]+\.(css|js|woff2|html)$/.test(f))) {
|
||||
const r = await fetch(`${SITE}/${f}`, { method: 'HEAD' });
|
||||
if (!r.ok) throw new Error(`Vérification : ${f} -> HTTP ${r.status}`);
|
||||
}
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur