Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7545637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:58:53+00:00 2026-05-30T08:58:53+00:00

The task sounds trivial but bear with me. These are the buttons I’m working

  • 0

The task sounds trivial but bear with me.

These are the buttons I’m working with:

  • Google (+1)
  • Facebook (Like)
  • Twitter (Tweet)
  • LinkedIn (Share)

With a little testing on webpagetest.org I found that it’s incredibly inefficient if you grab the snippet from each of these services to place these buttons on your page. In addition to the images themselves you’re also effectively downloading several JavaScript files (in some cases multiple JavaScript files for just one button). The total load time for the Facebook Like button and its associated resources can be as long as 2.5 seconds on a DSL connection.

Now it’s somewhat better to use a service like ShareThis as you can get multiple buttons from one source. However, they don’t have proper support for Google +1. If you get the code from them for the Google +1 button, it’s still pulling all those resources from Google.

I have one idea which involves loading all the buttons when a generic looking “Share” button is clicked. That way it’s not adding to the page load time. I think this can be accomplished using the code described here as a starting point. This would probably be a good solution but I figured I’d ask here before going down that road.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T08:58:55+00:00Added an answer on May 30, 2026 at 8:58 am

    I wouldn’t worry about it, and here’s why: if the websites in question have managed their resources properly – and, come on, it’s Google and Facebook, etc… – the browser should cache them after the first request. You may see the effect in a service where the cache is small or disabled, but, in all likelihood, all of your clients will already have those resources in their cache before they ever reach your page.

    And, just because I was curious, here’s another way:

    Here’s the snippet of relevant code from StackOverflow’s facebook share javascript:

    facebook:function(c,k,j){k=a(k,"sfb=1");c.click(function(){e("http://www.facebook.com/sharer.php?u="+k+"&ref=fbshare&t="+j,"sharefacebook","toolbar=1,status=1,resizable=1,scrollbars=1,width=626,height=436")})}}}();
    

    Minified, because, hey, I didn’t bother to rework the code.

    It looks like the StackOverflow engineers are simply calling up the page on click. That means that it’s just text until you click it, which dynamically pulls everything in lazily.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This sounds like it would be a simple task, but I'm running into some
It sounds like such a easy task but I am finding this very hard
Ok to the Task List in VS sounds pretty great. But I can't make
The question probably sounds a little odd, but the actual task is relatively simple,
As simple as it sounds, it seems like an extraordinarily complicated task.
Usually that really sounds like an sbolutely simple task: I have a view and
I've got some crazy task, that sounds like mission impossible. I need to pass
The homework task sounds something like this Generate a random vector of 4*n uniform
It sounds a little far fetched to me, but is there an ANT task
So my task may sound simple, but it has me boggled. I have looked

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.