Like to load facebook button to load

1

I have a div where the social networks part is. In it I have a button for liking from Facebook, Twitter and Google Plus.

Twitter and Google Plus finish loading together and is shown, while Facebook takes a few seconds to load.

I wanted to put a loader in this div and when they are loaded, yes you can show them all at once.

Is it possible?

    
asked by anonymous 10.03.2014 / 20:38

2 answers

1

First leave your div master with opacity:0 . Then use Jquery to check if the Facebook button was loaded and finally make them all appear together.

Example:

$( ".facebook").load(function() {
    $(this).parent().fadeTo( "fast" , 1);
});
    
09.04.2014 / 23:15
0

With the div I'm not sure if there is a way. But if you directly use the iframe generated from the respective buttons you can delegate a load event normally to them as to a common window.

    
10.03.2014 / 20:43