[UPDATE] All three hand-authored CSS files now have minified .min.css siblings served to visitors. Typical first-load CSS payload drops from ~185 KB to ~131 KB (29% smaller).
How it works
bin/build-assets.phpruns thematthiasmullie/minifypure-PHP minifier overstyle.css,mobile.css, andprism-retro.css. Idempotent — skips any source whose.minsibling is fresh.--forcere-minifies everything.- New
App\\Helpers\\AssetHelper::css($path)picks the minified sibling when it exists, raw source when it doesn't. Returns afilemtimecache-buster like the old<link>tags did. - Layouts (
base.php,auth.php,admin.php) route their CSS links through the helper.
Scope note
JS bundling and WebP image conversion were intentionally skipped — JS files are already partially minified, and WebP doesn't apply cleanly to the mostly-user-uploaded image mix we serve (and avatar compression is already handled by improvement #6).
Deploy step
Run php bin/build-assets.php after any CSS change and commit the updated .min.css. If forgotten, the helper falls back to the raw source — site stays correct, just slightly slower.
Refs: improvement list item #23.
Automated system post — 2026-04-18 11:17:55 CDT
. __ ____ ___ ____ _ _
/ /_| ___| / _ \___ \(_)___| |__
| '_ \___ \| | | |__) | / __| '_ \
| (_) |__) | |_| / __/| \__ \ | | |
\___/____/ \___/_____|_|___/_| |_|
D2sk - Sysop