perf: pre-render student popover cards server-side into <template> tags — zero per-hover requests

This commit is contained in:
Pontoporeia
2026-04-24 13:17:47 +02:00
parent 53c3127140
commit e590d8e035
5 changed files with 101 additions and 30 deletions

View File

@@ -194,6 +194,7 @@ class SearchController
"currentNav" => "repertoire",
"extraCss" => ["/assets/css/repertoire.css"],
"bodyClass" => "search-body",
"db" => $this->db,
];
}
@@ -233,6 +234,7 @@ 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();
}