Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
martis

Polite Loading Image Assets Google DoubleClick

Recommended Posts

Hey guys,

 

Found this post that had a great method for polite loading *scripts* in GDC...

 

http://greensock.com/forums/topic/12147-polite-loading-gsap-into-a-dc-html5-banner/?hl=polite+loading#entry50072

 

I know this isn't GSAP specific (but lots of smart people on here)...

 

Was wondering if anyone had a simple example showing polite loading *image assets* into the banner.

 

Note: This is for straight up HTML/CSS/JS

 

Thanks! 

Share this post


Link to post
Share on other sites

Hey, not at my computer at the moment so can't elaborate much but the bellow is what I use:

 

See the Pen bdyEZY by dipscom (@dipscom) on CodePen

 

And here's and example that uses it:

 

See the Pen yOpjBW by dipscom (@dipscom) on CodePen

 

Just have your JS wait what it needs to before using the method to load the images.

  • Like 1

Share this post


Link to post
Share on other sites

Hey thanks Dipscom...

 

I really like all the parameters you can pass it.

 

Thanks!

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×