GreenSock

Google DoubleClick and AdWords host GSAP on their CDN

Recommended Posts

Thanks for the help - I already had a ready function:

$(document).ready(function () { 

}

But I tried the

document.addEventListener("DOMContentLoaded", function(event) { 
//Now run your animation.
});

and got the same error message.

Share this post


Link to post
Share on other sites

@tedbell, can you provide a link so we can see the problem in context? It sounds like your page isn't actually loading TweenMax. Tough to troubleshoot blind, though. 

Share this post


Link to post
Share on other sites

Hi Ted,

 

Thanks for the demo.

I don't see any errors and the animation appears to be playing fine.

I guess you fixed it?

Share this post


Link to post
Share on other sites

Carl - thanks! I didn't fix it, but when you said it works for you - bingo! My Adblocker was preventing the GSAP lib from loading! Thanks for all the help - what an idiot I am - probably shouldn't be allowed to use any Greensock libraries after this embarrassment. I have to learn to turn off my Adblocker when I am creating ads!  :0

  • Like 2

Share this post


Link to post
Share on other sites

Classic! 

 

Don't worry, its normal. 

 

You'd be surprised the amount of times myself and my colleagues have run into that very schoolboy error.

  • Like 2

Share this post


Link to post
Share on other sites

Has anyone noticed in the Google approved CDN for Adwords and DoubleClick they added CreateJS!!??.  https://support.google.com/richmedia/answer/6307288?hl=en

 

What that means you can use (as the tutorials here show) that you can use Flash or Adobe Animate 2015 Again to make Adwords banners, yes!

I have successfully managed to get Adobe Animate, with CreateJS and TweenMax to make Adwords banners en then successfully uploading them using the external libraries form the CDN. This means my js file needed for the banner is only in total when minified en compressed only 8KB!!!! that gives me a headroom of 150KB - 8KB for images. Which now in Animate CC i don't use as often because it is only needed for true bitmaps, typefaces, text and vectors like logo's are converted to canvas.

 

Ofcourse you work in Adobe Animatie in Canvas HTML, but you can mix plain HTML by setting a div on top of the canvas generated by Animate CC 2015 and then move from there. Animate converts all vector library elements to canvas elements. So when you import a logo from illustrator its not converted to an image. When you use fonts you can easily edit them when the client wants changes.

 

Yes another new way of making ads for Google Adwords, thanks again GreenSock!!

  • Like 3

Share this post


Link to post
Share on other sites

LOL

 

That is almost one year old

 

LOL coding by hand is easier, i get now a canvas file that is 120KB in size ;-)

  • Like 1

Share this post


Link to post
Share on other sites

Thanks for letting us know! Great news.

Share this post


Link to post
Share on other sites

That's pretty odd indeed. I'd recommend reaching out to the DoubleClick team. Unfortunately, we don't have any control over what they put on their CDNs. :(

Share this post


Link to post
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.