Fixed the flash of Facebook Like button

Facebook Like button has a problem of flashing since day one. The reason is simple: facebook needs time to load the button. Fix is easy. Set visibility property to “hidden” and change it to “visible” in onload event. The reason of using visibility instead of display (firstly set to none and then block) is that visibility does not affect layout while display could change the position of text below Like button.

Leave a Reply

Your email address will not be published.