Coder Social home page Coder Social logo

IntersectionObserver about emergence.js HOT 3 OPEN

thesnups avatar thesnups commented on May 26, 2024 8
IntersectionObserver

from emergence.js.

Comments (3)

mjsisley avatar mjsisley commented on May 26, 2024 6

As a counterpoint @N1kto, if this library feature checked IntersectionObserver and used it when available, you would get the assumed performance improvements of that API when available... but also achieve broader browser support by falling back to the methods currently in use here.

It is a further benefit to the consumer to not have to have multiple implementations within the codebase.

from emergence.js.

thesnups avatar thesnups commented on May 26, 2024 2

I agree with @mjsisley. As a programmer I'd like to be able to code again a consistent API (e.g. the emergence.js API) whilst knowing that the performance benefits of IntersectionObserver are being leveraged when they are available.

from emergence.js.

N1kto avatar N1kto commented on May 26, 2024

IMHO this lib is kind of alternative to IntersectionObserver, so there is not much sense using the latter inside the lib.
The value of this lib is that it serves same purposes as IntersectionObserver while grounding on very basic browser API and thus having much broader browser support.

I think it's up to consumer (you) to decide whether to use IntersectionObserver when it's available or this lib :)

from emergence.js.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.