MyBB Community Forums

Full Version: Add Facebook Like button that loads fast
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys I have added a Facebook iframe like button to my forum and it slows my website load time at least 1 sec. Is there a like button code that loads fast?
My code
<iframe src="https://www.facebook.com/plugins/like.php?href=http://letsforum.com&amp;show_faces=false&amp; locale=en_US&amp; layout=button_count" scrolling="no" frameborder="0" style="height: 20px; width: 80px" allowTransparency="true"></iframe>
Thanks
You can try to use some of Facebook like button plugins. There is few quite good, I've to say.
Thank but I don't like plugins!
Is there any specific reason why you don't like them?
They slow my forum down
Thats not true in all case plugins which uses ajax and more js files slow down your forum but only few seconds and if your host is gud then that doesn't matter
i have more than 30 plugins active in my forum and even my host is free hosting then also my site is fast loading
Yes but for me 1 sec is just too much Wink any idea how to fix Facebook code
Don't add an iframe.
Instead add a javascript and use another function to load it asyncronous.
There is no better way of having a like button.
(2013-08-15, 10:26 AM)Jovan J. Wrote: [ -> ]Is there any specific reason why you don't like them?
Why not though? MyBB Team themselves say that the less plugins you have the better and they also say that we don't need plugins. Plugins just make our life easier.
Well plugins are good but for something not easy as this Wink