This commit is contained in:
2026-09-10 19:08:38 +02:00
parent 228c06735c
commit 118eda1de0
2 changed files with 14 additions and 19 deletions
+4 -1
View File
@@ -3841,7 +3841,10 @@ window.cancelAnimFrame = (function () {
const _itemCacheKey = ajaxUrl;
const _cachedItem = !options.skipCache ? itemCacheMap.get(_itemCacheKey) : null;
if (window.randomizeLogo) window.randomizeLogo();
// Allow slide-out animation to visibly start before content swap
if (options.direction && document.querySelector('.content')) {
await new Promise(r => setTimeout(r, 180));
}
// ── CACHE HIT: render immediately, revalidate in background ────────────
if (_cachedItem) {