Updated home.js

Removed unused lines from experimentations.
This commit is contained in:
Bobby Wibowo 2018-04-29 19:54:55 +07:00
parent 61e1896945
commit 31968ada06
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -15,8 +15,7 @@ const page = {
dropzone: null,
clipboardJS: null,
lazyLoad: null,
lazyLoadTimestamp: null
lazyLoad: null
}
const imageExtensions = ['.webp', '.jpg', '.jpeg', '.bmp', '.gif', '.png']
@ -304,16 +303,6 @@ window.addEventListener('paste', event => {
}
})
page.lazyLoadUpdate = () => {
// console.log(page.lazyLoadTimestamp)
if (!page.lazyLoadTimestamp) { page.lazyLoadTimestamp = 0 }
if (Date.now() - page.lazyLoadTimestamp >= 500) {
console.log('update() called')
page.lazyLoad.update()
page.lazyLoadTimestamp = Date.now()
}
}
window.onload = () => {
page.checkIfPublic()