[JavaScript] Lazy Load Facebook Like Box To Speed up Page Load Time | Website Performance Monitoring






How to lazy load Facebook like button on the scroll after the page loaded using Jquery? Make Facebook likebox asynchronous to loaded automatically on the scroll. Learn how to lazy load scroll down jquery script files to improve page speed. Here on the problogbooster. I still use the method to asynchronous lazy-load other types of scripts, there is no need of javascript gettime to call it to run. Lazy load Facebook's likebox
I today demonstrate you Facebook lazy loading likebox for your site and auto load content on scroll down, so stop searching to defer lazy loading of Facebook widgets to speed up page loading. The Facebook likebox always downloads extra data when the user visits each time your site which causes page loading time slow. The Facebook developer button with like Box is a special version of the LIKE Button designed for Facebook Pages. Showing "Like us on Facebook page" is easier but it cost much in terms of page loading. This method uses to defer both JavaScript + HTML Facebook likebox button and follows all the rules by Facebook page developer. This technique also lazy load the Facebook content placeholder css while you scroll the pages. The widget code and jquery lazy load content on the scroll. There is special like box WordPress plugins for the custom like button facebook widget that load content while scrolling with jquery. But what about the blogger users? What if the facebook app not loading faster as page load? This tutorial answers for blogger and Facebook widget WordPress code as well to use jquery on the scroll for differ loading of Facebook like fan page by using jquery ajax load javascript. Here I have provided the direct code of widget for Facebook page likebox as a Facebook like page plugin. I suggest you use it with your website not only for faster page loading but for better Facebook marketing. Learn how to add Facebook to the website and how to defer the loading of Facebook like box by lazy load FB JavaScript for making page speed much faster.
Lazy Load Facebook Like Box To Speed up Page Loading
Lazy Load Facebook Like Box To Speed up Page Loading
In the category of Facebook, last time we have seen how to see locked profile picture hack, and today we are going to focus on page loading. We are going to use the better technique by lazy load script to defer loading of any widget. You can ignore the data downloaded by this widget but you need to concentrate its loading-time because it directly affects to your site loading-time.

Also read; 5 Advanced Tips For Making Blogger Blog To Load Faster

Defer Facebook Developer Button

For better page performance this is an essential tip and as the page content is more important than widgets, it is much better to make a delay loading of these widgets so that it will load only when the whole page gets loaded.


Lazy Load Facebook Like Box JavaScript

Add following code in your HTML widget:

RECOMMENDED: [Facebook Security Alert] Use 3 Passwords To Access Facebook Account // FB Update


<!-- lazy loading of Facebook widget -->
<script type='text/javascript'>
//<![CDATA[
$(document).ready(function() {
    $('#fbHolder').append('<div id="fb-root"></div>');
    $('#fbHolder').append('<fb:like-box href="http://www.facebook.com/ID" width="300" show_faces="true" stream="false" header="false"></fb:like-box>');
    jQuery.getScript('http://connect.facebook.net/en_US/all.js#xfbml=1', function() {
        FB.init({status: true, cookie: true, xfbml: true});
    });
});
//]]>
</script>
<!-- lazy loading of Facebook widget -->
<div id="fbHolder">
<!-- put here your old Facebook widget box code -->
</div>
You just need to replace blue colored text as per your content.

A demo is working here on this site, or you can check its performance on Page Speed and Pingdom Page Speed, significantly you will see the changes in the report.


Don't forget to LIKE, SHARE & SUBSCRIBE...
Seriously, your small share helps a lot with the growth of this blog.
Most of the readers don’t share as they feels that we as bloggers don’t require their ‌tiny social share. But here’s the fact…
I've developed this blog piece by piece, your one small share at a time, and will continue encouraging me to do so. So I appreciate your support if you share this page on your social profile.
My dear reader! it won’t take more than 5 sec. of your time. The share buttons are there, please share and subscribe.
Vinayak SP
Authorised by:

I'm a writer, digital columnist, tech-savvy and an engineer all rolled into one. Yes, that pretty much what everyone likes to call a geeky friend or what you’re probably here seeking, a content writer. You can follow me on the social media or subscribe the email newsletter for the updated guides and tutorials. Publishes news articles about blogging tips, SEO, making money online, affiliate marketing, & tech reviews.

⚠ Disclaimer
We are one of the type of a professional review site that operate like any other website on the internet. We respect & trust our readers. And we are confident & would like to mention that the above post contains some affiliate/referral links. And if you make a purchase; we receive commission from the links/apps/products we refer. We are totally unbiased and do not accept paid reviews or fake reviews claiming to be something they are not. We test each product thoroughly and give high marks to only the very best. We are independently owned and the opinions expressed here are our own.
Read & Post Comments

COPYRIGHTS & USAGE

All of the ProBlogBooster ideas are free for any type of personal or commercial use. All I ask is to keep the footer links intact which provides due credit to its authors. From time to time, we may use visitors/readers, information for distinct & upcoming, unanticipated uses not earlier disclosed in our privacy notice. If collected data or information practices changed or improved at some time in the future, we would post all the policy changes to our Website to notify you of these changes, and we will use for these new purposes only data collected from the time of the policy change forward. If you are concerned about how your information is used, you should check back our website Policy pages periodically. For more about this just read out Privacy Policy

Most Trending Pages

101 Top SEO Tips & Strategies To Increase Organic Traffic

101 Top SEO Tips From Experts

You should learn effective SEO techniques as there are many best SEO optimized websites for you and your brand who are already working on and their search rankings are now in the first top ten results. Listed top SEO tips and tricks which will help you get better search ranking & keep you at the top of the SEO results.

Add All Open Graph Tags To Boost Social Sharing

Open Graph Protocol

An "Open Graph Meta Tags" is one of the most important tags that every blogger need to add into the HTML body of their blog to properly show title, description, images & you need to optimize the Open Graph tags that'll enable you to make it happen a rise in social sharing and improved conversion rate.


Benefits of Online Marketing For The Business

Benefits And Importance of Online Marketing For The Business

Listed the advantages of online marketing, benefits of digital advertising and the strategies that the online marketing services for small businesses practices to drive more buyers. Sellers are now aware of the benefits of internet advertising and how digital marketing help to generate more sales. Follow benefits of internet marketing for your business.

10 Ways To Make YouTube Videos PROFESSIONAL

Top 10 Ways How To Make PROFESSIONAL YouTube Videos // YouTube Techniques

Making videos professionally is not as complicated as it appears. If you have basic accessories of shooting, then you are ready for this. You just need to know how to hold a camera & some basics of filmmaking. Having high-quality video will undoubtedly increase your subscriber, & obviously helps you to make money with youtube ads.

FB Twitter Google Linkedin