Font Awesome preload exists only on index.html, so every other page discovers it late
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 68/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- css, html
- Área
- performance, web-dev
Línea de trabajo
Compara el head de index.html con las demás páginas indexadas; después, inspecciona el @import al principio de assets/css/main.css y las indicaciones sobre la estructura de páginas en CLAUDE.md. Elige uno de los dos enfoques de carga descritos, aplícalo de forma coherente y verifica que Font Awesome se pueda detectar sin esperar a main.css y que todas las páginas indexadas tengan un head idéntico byte a byte.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Noticed while adding the Open Graph block to every page's <head> in #130.
index.html carries
<link rel="preload" href="assets/css/font-awesome.min.css" as="style" />
and no other page does. It is the only difference between index's head and every other page's.
assets/css/main.css starts with @import 'font-awesome.min.css', so every page pays for a second, serially-discovered stylesheet: the browser cannot start fetching Font Awesome until main.css has arrived and been parsed. The preload on index is what collapses that into one round trip. The footer social icons (fa-linkedin, fa-github, fa-gitlab, fa-envelope) are on every page, so every page shows the delayed-icon symptom the preload exists to fix, and every page but index goes without the fix.
Two things to decide, and they point in different directions:
- Add the preload to the other pages. Cheapest fix, matches what index already does, and restores the byte-identical head that CLAUDE.md's "Page structure" section says should hold across pages. This inconsistency is itself the kind of drift that rule is there to prevent.
- Drop the
@importinstead. An@importat the top of a stylesheet is the render-blocking pattern the preload is papering over. Linkingfont-awesome.min.cssdirectly from each page's<head>, ahead ofmain.css, removes the serial dependency outright and makes the preload unnecessary. Larger change: it touches the Sass, the generated CSS and every page.
Either way the head should end up the same on all pages. #63 covered the homepage's render-blocking resources, which is presumably where the lone preload came from; this is the same problem on the pages that issue did not touch.
Acceptance criteria
- Font Awesome is discoverable without waiting for
main.cssto parse, on every page, not onlyindex.html - The
<head>region is byte-identical across every indexed page again
- Lenguaje dominante
- HTML
- Estrellas
- 0
- Forks
- 0
- Merge medio
- 9 h 52 min
- PR fusionados (30 d)
- 59
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de laywill/laywill.github.io
-
design
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
laywill/laywill.github.io#186 ·
-
design
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
laywill/laywill.github.io#183 · 1 comentario ·
-
Dificultad 2/5 Medio día Aptitud para principiantes 74/100
laywill/laywill.github.io#135 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
laywill/laywill.github.io#106 ·
-
infra needs-william
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
laywill/laywill.github.io#35 · 1 comentario ·
Todos los issues de laywill/laywill.github.io
Issues similares
-
🎙️ task - perf(jest): source keyrack once per run in globalSetup, not per suite file (~25s each) Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
brave/brave-browser#59300 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Borewit/music-metadata#2755 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100