mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
perf: htmx lazy popover with Cache-Control — no pre-render, images load on hover only
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user