Jump to content
Search Community

Size of DrawSVG and MorphSVG in kbs

NiteshS test
Moderator Tag

Recommended Posts

Hi Mates,

 

I am new to Greensock, i was wondering if it's possible to create Google Display ads by keeping DrawSVG and MorphSVG in the zip as it's not available on CDN.

 

Is it possible to do that? ads are supposed to be kept under 150KB, so i what do you suggest?

 

Thank you

Nitesh

Link to comment
Share on other sites

Hey Nitesh, welcome.

 

It is not possible to keep serve JavaScript files inside of a ZIP file, no. That's a browser-level restriction and applies to all JavaScript files. 

 

The only things that you can do to try and keep the file size low if you're going to use them is to either

  1. Use the minified versions of the DrawSVG and MorphSVG files or
  2. Use a build process to tree shake parts of the plugins that are unused.
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.
×
×
  • Create New...