For virtualised lists sometimes you want to render something before it enters the viewport (rendering takes a while, there's some async or w/e), how would you do that with an Intersection Observer?
-
-
-
That's why IntersectionObserver take a `margin` parameter, so you can trigger early (or late!)
- Još 2 druga odgovora
Novi razgovor -
-
-
And I've made it super easy to implement in your React application:https://github.com/thebuilder/react-intersection-observer …
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
I wanna try to use that in Popper to simplify the code
right now we have a custom function that does the sameHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
Was the new version released in Chrome, what about other browser?
-
What new version? IO support is great across browsers https://caniuse.com/#feat=intersectionobserver …pic.twitter.com/cmOheJhKUK
- Još 1 odgovor
Novi razgovor -
-
-
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
No react native support though :(
-
Because it is a browser API.
Kraj razgovora
Novi razgovor -
-
-
@addyosmani But what is the wrong with getBoundingClientRect() if it is supported in all browswers including IE? I mean why shouldn't I use it?Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.
• Lighthouse, PageSpeed Insights, DevTools • Founder TeeJungle