Jump to content
GreenSock

aStone

tweenmax external link when I'm using timelinemax?

Recommended Posts

Hello, 

 

I’m a very new to GSAP. 

I downloaded GSAP-AnimateCC-Starter-Files. 

I am usingTimelineMax script in adobe AnimateCC like the line below: 

 

var tl = new TimelineMax({delay:2, repeat:3,repeatDelay: 1});

 

However, when I publish html and js, there is only TweenMax.js added to the script.

<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.18.2/TweenMax.min.js"></script>

 

But it is working fine. 

Am I missing something? Could anyone give me an advice? 

 

Link to comment
Share on other sites

You could save on a small amount of file size by loading TweenLite, CSSPlugin and TimelineLite, however it is generally accepted that loading 1 slightly larger file is better than loading 3 individual files (less requests). 

 

Its also slightly more likely that TweenMax will be cached than those 3 individual files. 

 

Learn how not all kilobytes are created equal in our recent nerd thriller, The kilobyte conundrum

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×