Implementierung - SEO - 15.08.2025
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- Sitemap for damjan-savic.com - IDE warning about unregistered URI can be ignored -->
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||||
<url>
|
<url>
|
||||||
|
|||||||
@@ -103,13 +103,14 @@ const PageTransition = ({ children }: PageTransitionProps) => {
|
|||||||
}, 1200);
|
}, 1200);
|
||||||
|
|
||||||
// Store the end timer for cleanup
|
// Store the end timer for cleanup
|
||||||
(window as any).__pageTransitionEndTimer = endTimer;
|
(window as unknown as Window & { __pageTransitionEndTimer?: NodeJS.Timeout }).__pageTransitionEndTimer = endTimer;
|
||||||
}, 10);
|
}, 10);
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
clearTimeout(startTimer);
|
clearTimeout(startTimer);
|
||||||
if ((window as any).__pageTransitionEndTimer) {
|
const windowWithTimer = window as unknown as Window & { __pageTransitionEndTimer?: NodeJS.Timeout };
|
||||||
clearTimeout((window as any).__pageTransitionEndTimer);
|
if (windowWithTimer.__pageTransitionEndTimer) {
|
||||||
|
clearTimeout(windowWithTimer.__pageTransitionEndTimer);
|
||||||
}
|
}
|
||||||
setIsTransitioning(false);
|
setIsTransitioning(false);
|
||||||
setGlobalTransitioning(false);
|
setGlobalTransitioning(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user