Jump to content
Search Community

ricky11

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by ricky11

  1. I am importing gsap as so :

     

     const {default : gsap} = import(/* webpackChunkName: "gsap" */ 'gsap/dist/gsap.min.js')

     

    this is great because i don't need to load the 60kb gsap build on every load, and only when and if its needed.


    The problem however is that I am only using one simple tween function to animate numbers going from 0 to 100.

     

    Can I tree shake gsap code to tween only ?  60 kb does seem like a lot for what i am doing?

     

    thanks.

     

×
×
  • Create New...