NiteshS Posted October 15, 2020 Share Posted October 15, 2020 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 More sharing options...
ZachSaucier Posted October 15, 2020 Share Posted October 15, 2020 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 Use the minified versions of the DrawSVG and MorphSVG files or Use a build process to tree shake parts of the plugins that are unused. Link to comment Share on other sites More sharing options...
NiteshS Posted October 15, 2020 Author Share Posted October 15, 2020 i am new to programming, what is this 'build process to tree shake parts' Link to comment Share on other sites More sharing options...
ZachSaucier Posted October 15, 2020 Share Posted October 15, 2020 42 minutes ago, NiteshS said: what is this 'build process to tree shake parts' https://developer.mozilla.org/en-US/docs/Glossary/Tree_shaking Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now