🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-06 17:07:23 | PHP 8.2.32
📂
/ (Root)
/
home
/
eliteewa
/
public_html
/
wp-content
/
themes
/
blocksy
/
static
/
js
/
frontend
/
dynamic-chunks
📍 /home/eliteewa/public_html/wp-content/themes/blocksy/static/js/frontend/dynamic-chunks
🔄 Refresh
✏️
Editing: scroll-trigger.js
Writable
const handledChunks = {} export const handleScrollTrigger = ( trigger, chunk, loadChunkWithPayload, loadedChunks ) => { if (handledChunks[chunk.id]) { return } handledChunks[chunk.id] = true setTimeout(() => { let prevScroll = scrollY let cb = (e) => { if ( Math.abs(scrollY - prevScroll) > 30 || // are we at the bottom of the page? window.innerHeight + Math.round(scrollY) >= document.body.offsetHeight ) { document.removeEventListener('scroll', cb) loadChunkWithPayload(chunk) return } } cb() document.addEventListener('scroll', cb, { passive: true }) }, 500) }
💾 Save Changes
❌ Cancel