full site update

This commit is contained in:
2025-07-24 18:46:24 +02:00
parent bfe2b90d8d
commit 37a6e0ab31
6912 changed files with 540482 additions and 361712 deletions

View File

@@ -115,9 +115,12 @@ async function doPreparation(from, to, direction, navigationType, sourceElement,
}
return event;
}
function doSwap(afterPreparation, viewTransition) {
async function doSwap(afterPreparation, viewTransition, afterDispatch) {
const event = new TransitionBeforeSwapEvent(afterPreparation, viewTransition);
document.dispatchEvent(event);
if (afterDispatch) {
await afterDispatch();
}
event.swap();
return event;
}