Giter Site home page Giter Site logo

Comments (4)

diegoliv avatar diegoliv commented on June 28, 2024 1

I think that one of the use cases here is when you want to use this library on a no-code project for example. Say that I have a page built in Webflow that I want to use Lenis for smooth scroll. I can embed custom JS code there, but I can't use node or bundlers there.

So, if we had a precompiled version of Lenis that could be hosted on a CDN for example, then all we would need to do is include the script tag and initialize Lenis.

from lenis.

arzafran avatar arzafran commented on June 28, 2024

Hello @worldoptimizer PRs are welcome, we've talked about bundling it but ended up thinking that should be a task for the bundler in the project instead.. we may be wrong but i'd love to learn more about your use case to understand if it makes sense for us to precompile it or not.

the main intention is to keep the lib lightweight if we precompile it it's going to need a ton of polyfills that users may not need..

i'm just thinking out loud

from lenis.

arzafran avatar arzafran commented on June 28, 2024

fixed on de9282c

from lenis.

clementroche avatar clementroche commented on June 28, 2024

#4 fix this

from lenis.

Related Issues (20)

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.