Show HN: In-view.js – Get notified when DOM elements enter or exit the viewport
1–10 of 69 posts
Re: Show HN: In-view.js – Get notified when DOM elements enter or exit the viewport
#2Conversations about what's an app and what's a document aside, I'd much rather documents didn't know anything about how they were being displayed.
Re: Show HN: In-view.js – Get notified when DOM elements enter or exit the viewport
#3Re: Show HN: In-view.js – Get notified when DOM elements enter or exit the viewport
#4Babel and webpack are megaoverkill for this and account for a good chunk of the 2k gzipped size. The actual library code is barely 140SLOC. There's a lot of room for improvement if this is intended to be a real standalone library (vs. a webpack/babel test).
Re: Show HN: In-view.js – Get notified when DOM elements enter or exit the viewport
#5Re: Show HN: In-view.js – Get notified when DOM elements enter or exit the viewport
#6I hope this gets used for good, not evil. Lots of sites (you know, those sites, they crop on on HN from time to time) flash up "give me your email address so I can send you spam" boxes before I can read the blog post. Or when it thinks I've gone somewhere else when in fact I just opened it in a new tab. Or if a momentarily switched away. I mostly close blogs that aggressively try to sell me things, but sometimes I wa…
Re: Show HN: In-view.js – Get notified when DOM elements enter or exit the viewport
#7Re: Show HN: In-view.js – Get notified when DOM elements enter or exit the viewport
#8Won't this be a performance killer?
Re: Show HN: In-view.js – Get notified when DOM elements enter or exit the viewport
#9Interesting project. I wonder if you might be willing to outline a few use cases?
Note: this is definitely not the same as a recycled view. But can help accomplish one aspect
Re: Show HN: In-view.js – Get notified when DOM elements enter or exit the viewport
#10Interesting project. I wonder if you might be willing to outline a few use cases?