Skip to main contentdfsdf

Home/ purprinagird's Library/ Notes/ Facebook Like Slowing Page Load

Facebook Like Slowing Page Load

from web site

=


Facebook Like Slowing Page Load

Download

Facebook Like Slowing Page Load

–Roberto M. I'd be honored if you'd consider subscribing, checking out owocki on twitter, or perusing some related posts: 9 Tips to Fix Slow Gmail Load Times Tips to fix slow Youtube video load times Yahoo Mail is Slow? Some Tips to Fix Slow Yahoo Load Times How do I find my LinkedIn Profile URL? tech support, tools facebook is slow, facebook slow, facebook slow loading, facebook slow on chrome, facebook slow on galaxy, facebook slow on ipad, facebook slow on wifi, facebook slow safari, facebook slow today, facebook slowing down chrome, slow websites Post navigation NEXTGmail is Slow 2015 Edition PREVIOUS Foundations of Leadership #1: Say what youre going to do and then do it. Stack Overflow works best with JavaScript enabled .. Tech-fu Data Warehousing 5 Minutes to a Productive Gmail Inbox Captio for iPhone Bridge Mixed Reality Headset Oculus Rift cv1 First Thoughts Startups Good Engineer / Bad Engineer Software Engineering Interview Prep Checklist Agile A La Carte Menu Create Virtuous Cycles Within Startup Teams A Ping Pong Table Is Not Your Culture Reputation Is Sacrosanct Credible Engineering Leadership Skills The Hot Seat Email Best Practices Who's Going to Build my MVP? The Default State is Failure Dialogue Make the Abstract Actionable Where is the fire around this fire? Situational Awareness Create More Value Than You Capture Systems Standing On The Shoulders Of Giants Log Everything & you can Manage Anything Visual History Series Microsoft Windows Mac OS X 10 Internet Giants, 10 Years Ago Suicide Survivorship End Suicide Stigma Digital Resources for Suicide Survivors Storytelling will save thte World. If that doesn't help, then I would suggest having them only appear on hover. Or, you can try finding it by using the search form below. I'm including the Facebook Like Button, Twitter Button and Google+ Button. See Stoyan's post here for information about how you can load the JS SDK in a non-blocking way using iframes. I am a software engineer by profession. If that's too much, and you want to delay the SDK downloading or running (and speed it up once it does run), here is my recommendation: First, either use a library like jQuery that provides a way to hook into the DOM being ready in a cross-platform fashion. Switch to a modern browser, like Google Chrome. Home How it Works Contact Blog Pricing . Footer Contact Sitemap Privacy Terms Disclosure 2018 GEEK FLARE Powered by Genesis. The best thing to do for performance would be to specifically call FB.XFBML.parse(document.getElementById('')) so that the SDK doesn't waste time going over the whole DOM. JS (in a seperate file, social.js): /* Facebook*/ (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/enEN/all.js#xfbml=1&status=0"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); /* Twitter */ !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs'); /* G+ */ (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = ' var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); HTML: $(window).bind("load", function() { $.getScript('js/social.js', function() {}); }); Tweet So after this load timings were normal again, 0.24s: javascript html facebook-social-plugins google-plus-one twitter-button shareimprove this question edited Jul 7 '14 at 15:21 asked Sep 27 '13 at 21:24 user2824854 1 You could simplify it with a simple HTTP GET, but it will require manual styling: hanselman.com/blog/… –MonkeyCoder Sep 27 '13 at 22:29 is there really any need to getElementsByTagName() ? I don't think so. I'm running out of ideas. So I ran a few tests: Website without social media buttons, loading time 0.24s: Website with social media buttons, loading time 1.38s: Here is my code: (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/enEN/all.js#xfbml=1&status=0"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); Tweet !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs'); (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = ' var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); So I tried few things to load these social buttons without them slowing website load time. I moved the necessary JavaScript code (for social media buttons) in a separate file to make my HTML/markup little bit cleaner. shareimprove this answer answered Oct 28 '13 at 9:17 Kernel James 2,3621215 add a comment up vote 1 down vote Try to use async loading for Social init scripts: . If you are too, send me an to say what's up on twitter: Other Posts Series of Posts Recruitment(2015) Data Warehousing(2015) Foundations of Leadership (2015) Essential Mac Tools (2014) Startup CTO Tips(2010) Side Projects Quotify Photo Workflow Tools VR Space Mini Golf Slack Emojibot pyTrader Agile A La Carte Menu Slack Gamebot adblock-to-bitcoin Hacker News Trends Practical MindHacking Twitter Sentiment Analysis of Airlines Feedless Facebook Export Instagram Pics with this Bookmarklet(now defunct) TOSAmend v1&(TOSAmend v2) Quotify.it Amurrica! Technical Recruitment Don't use Recruiters to Hire Engineers Reduce LinkedIn Spam with this Profile Headline What a Good Cold Recruitment Email Looks Like What to say when a recruiter sends you a SPAM message Recruitment is Good; Common Recruiter Tactics Are Bad. You just have to scroll a little further down on the official documentation pages. All rights reserved Privacy Policy Terms of Use Get started Blog Contact About Home . FB API will not wait for window.onload of parent window and will render social plugins earlier. how to render them BEFORE window.onload() event occures (because of slow network on wifi / large image on page / .) you may try my solution: window.fbAsyncInit = function () { dispatchEvent(new Event('load')); } fbAsyncInit is called as soon as facebook sdk js file is loaded (e.g. Other Shopsavvy sites LaptopMag Live Science Tom's Hardware Space.com TopTenReviews AnandTech Tom's Guide Newsarama. shareimprove this answer answered Apr 21 '17 at 11:23 lukyer 2,2411621 add a comment protected by Communityf May 27 '14 at 5:30 Thank you for your interest in this question. .. more stack exchange communities company blog Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Log In Sign Up . Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count). You may need to switch to Facebook Mobile or Facebook Lite. Jump toSections of this pageAccessibility HelpPress alt + / to open this menuRemoveTo help personalize content, tailor and measure ads, and provide a safer experience, we use cookies. shareimprove this answer edited Oct 31 '13 at 11:24 Sergiu Dumitriu 8,84832155 answered Oct 28 '13 at 18:51 paka 1,2541630 add a comment up vote 0 down vote Most of the major social media buttons offer an asynchronous version of their JavaScript. I noticed that social media buttons are slowing down the website by quite a lot. Find a faster internet connection. Once you have your "DOM ready handler", you should do one of the following two things: Move the JS SDK loading code into your DOM ready handler. Try a different web browser 5a02188284

download facebook app for android new version
is facebook using java
incentives for facebook likes
sad friendship statuses for facebook
facebook video downloader to computer
czarina forex facebook
installer derni re version de facebook
download facebook chat on computer
facebook hacker cup languages
automatic like for facebook

purprinagird

Saved by purprinagird

on Jan 10, 18