Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf: add Link preload headers for critical boot assets

Browser starts fetching boot.mjs and style.css while still parsing
the HTML response, saving ~1 RTT on first load. Combined with
Cloudflare edge caching (now enabled for .mjs files via cache rule),
users worldwide get cached assets from their nearest Cloudflare POP
instead of hitting SFO3 origin every time.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+3
+3
lith/Caddyfile
··· 283 283 # These all serve the main AC SPA 284 284 @mainspa host aesthetic.computer www.aesthetic.computer kidlisp.com www.kidlisp.com notepat.com www.notepat.com l5.aesthetic.computer p5.aesthetic.computer processing.aesthetic.computer sitemap.aesthetic.computer 285 285 handle @mainspa { 286 + # Preload critical assets (browser starts fetching before parsing HTML) 287 + header Link "</aesthetic.computer/boot.mjs>; rel=preload; as=script; crossorigin, </aesthetic.computer/style.css>; rel=preload; as=style" 288 + 286 289 # Assets → DO Spaces CDN 287 290 handle /assets/* { 288 291 redir https://assets.aesthetic.computer{uri} 302