ship the side art as a cached stylesheet so cached loads paint in one frame
Deploy / deploy (push) Successful in 3s

This commit is contained in:
2026-10-13 15:05:21 +02:00
parent ecb899a866
commit ec2ad2c618
5 changed files with 78 additions and 44 deletions
+10
View File
@@ -0,0 +1,10 @@
<?php
// The side art as a stylesheet (see inc/art.php). The URL carries ?v=, so it
// can be cached for good.
require_once __DIR__ . '/config.php';
require_once __DIR__ . '/inc/art.php';
[$css] = ansi_css_cached(__DIR__ . '/inc/art/sakura.ans'); // render (or fail) before the headers
header('Content-Type: text/css; charset=utf-8');
header('Cache-Control: public, max-age=31536000, immutable');
readfile($css);