Skip to content

feat: bundle CSS via Hugo asset pipeline to reduce render-blocking re…#99

Open
0xDedSec42 wants to merge 1 commit intojoeroe:mainfrom
0xDedSec42:feat/bundle-css
Open

feat: bundle CSS via Hugo asset pipeline to reduce render-blocking re…#99
0xDedSec42 wants to merge 1 commit intojoeroe:mainfrom
0xDedSec42:feat/bundle-css

Conversation

@0xDedSec42
Copy link
Copy Markdown

…quests

Previously, head.html loaded risotto.css which contained 7 @import statements, resulting in 10 sequential render-blocking CSS requests.

This change:

  • Moves CSS files from static/css/ to assets/css/ to enable Hugo's asset pipeline
  • Removes @import statements from risotto.css
  • Uses resources.Concat + minify + fingerprint in head.html to produce a single bundle.css from all core styles
  • Palette and custom CSS remain separate and optional
  • Adds SRI integrity hashes via fingerprint

Reduces render-blocking requests from 10 to 2-3, saving an estimated 700-2300ms on the critical rendering path on mobile.

Closes #98

…quests

Previously, head.html loaded risotto.css which contained 7 @import
statements, resulting in 10 sequential render-blocking CSS requests.

This change:
- Moves CSS files from static/css/ to assets/css/ to enable Hugo's
  asset pipeline
- Removes @import statements from risotto.css
- Uses resources.Concat + minify + fingerprint in head.html to produce
  a single bundle.css from all core styles
- Palette and custom CSS remain separate and optional
- Adds SRI integrity hashes via fingerprint

Reduces render-blocking requests from 10 to 2-3, saving an estimated
700-2300ms on the critical rendering path on mobile.

Closes joeroe#98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bundle CSS files to reduce render-blocking requests

1 participant