perf: htmx lazy popover with Cache-Control — no pre-render, images load on hover only

This commit is contained in:
Pontoporeia
2026-04-24 13:20:19 +02:00
parent e590d8e035
commit 6eb111a6ab
3 changed files with 38 additions and 75 deletions

View File

@@ -194,7 +194,6 @@ class SearchController
"currentNav" => "repertoire",
"extraCss" => ["/assets/css/repertoire.css"],
"bodyClass" => "search-body",
"db" => $this->db,
];
}
@@ -224,6 +223,7 @@ class SearchController
exit();
}
header('Cache-Control: public, max-age=300');
include APP_ROOT . '/templates/partials/student-preview.php';
exit();
}
@@ -234,7 +234,6 @@ class SearchController
): never {
header("Content-Type: text/html; charset=UTF-8");
$isHtmx = true;
$db = $this->db;
include APP_ROOT . "/templates/partials/repertoire-index.php";
exit();
}