As you probably know the Facebook Like button loads very slowly.

And I am trying to figure out how to detect when the button has finished loading and has been added to the website.

The reason being that I show a loading animation, and then hide that and show the button, but I'd like to show the button when it has finished loading.

Can this be done?

Thanks in advance everyone!