|
|
@@ -173,9 +173,11 @@ export default {
|
|
173
|
173
|
}, TIMEOUT)
|
|
174
|
174
|
},
|
|
175
|
175
|
setIntersectionLoader() {
|
|
|
176
|
+ console.warn('setting up intersection handler...')
|
|
176
|
177
|
window.removeEventListener("load", e => {}, false)
|
|
|
178
|
+ const footerEl = document.querySelector(".footer-wrapper footer")
|
|
|
179
|
+ if(!footerEl) return
|
|
177
|
180
|
window.addEventListener("load", e => {
|
|
178
|
|
- const footerEl = document.querySelector(".footer-wrapper footer")
|
|
179
|
181
|
const observer = new IntersectionObserver(this.loadMorePosts, {
|
|
180
|
182
|
rootMargin: "0px 0px 20px 0px",
|
|
181
|
183
|
})
|