mirror of
https://github.com/timmypidashev/web.git
synced 2026-04-14 11:03:50 +00:00
mobile optimizations
This commit is contained in:
@@ -39,6 +39,18 @@ const ogImage = "https://timmypidashev.dev/og-image.jpg";
|
||||
defaultTransition={false}
|
||||
handleFocus={false}
|
||||
/>
|
||||
<script is:inline>
|
||||
if (window.innerWidth < 1024) {
|
||||
document.addEventListener('click', function(e) {
|
||||
var a = e.target.closest('a[href]');
|
||||
if (a && a.href && !a.target && a.origin === location.origin) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
window.location.href = a.href;
|
||||
}
|
||||
}, true);
|
||||
}
|
||||
</script>
|
||||
<script is:inline set:html={THEME_LOADER_SCRIPT} />
|
||||
<script is:inline set:html={ANIMATION_LOADER_SCRIPT} />
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user