Fix button prefetch values and remove unused IO rootMargin
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
<a
|
||||
href={url} class={classes}
|
||||
{target} {rel}
|
||||
data-sveltekit-prefetch={url && (isExternal || isProtocol) ? null : true}
|
||||
data-sveltekit-prefetch={url && (isExternal || isProtocol) ? 'off' : ''}
|
||||
data-sveltekit-noscroll={isExternal || isProtocol ? 'off' : ''}
|
||||
{disabled}
|
||||
tabindex="0"
|
||||
|
||||
@@ -68,10 +68,7 @@
|
||||
console.log('stop globe2')
|
||||
}
|
||||
})
|
||||
}, {
|
||||
threshold: 0,
|
||||
rootMargin: '0px 0px 0px'
|
||||
})
|
||||
}, { threshold: 0 })
|
||||
observer.observe(globeEl)
|
||||
|
||||
|
||||
|
||||
@@ -118,10 +118,7 @@
|
||||
// Run effect once
|
||||
isIntersecting && observerPhotos.unobserve(target)
|
||||
})
|
||||
}, {
|
||||
threshold: 0.3,
|
||||
rootMargin: '0px 0px 0px'
|
||||
})
|
||||
}, { threshold: 0.3 })
|
||||
|
||||
// Photos MutationObserver
|
||||
if (photos.length) {
|
||||
|
||||
Reference in New Issue
Block a user