You can easily add code for showing it on your site, BUT!.. It's somehow erroneous and not optimized well.
So let me show you how to make it more valid and faster to load.
Original Facebook code that you can grab on their site: https://developers.facebook.com/docs/reference/plugins/like/
(I will use default setting but this is not important).
1. Include the JavaScript SDK on your page once, ideally right after the opening tag.
Place the code for your plugin wherever you want the plugin to appear on your page.
So what you need to change:
First - script should have type attribute.
Second - script should load asynchronously for faster page rendering.
No comments:
Post a Comment