Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Two days back I added social counters on my listing page and that screwed up my Page Speed Grade and yslow ratings pretty badly.

Before:

enter image description here

After:

enter image description here

Sharing Options:

enter image description here

If I disable the sharing on landing page then I can see those awesome results back. Here is my blog link is

How can achieve same or comparable results when social sharing is enabled.

share|improve this question
    
I updated my answer. You should set the loop on your home page to display excerpts so sharethis doesn't load multiple times. –  Anagio Dec 9 '12 at 8:55

1 Answer 1

up vote 2 down vote accepted

I use addthis.com on sites and I make sure to put the javascript near the bottom of the page since it's not too important to have that file loading earlier. Try moving your js to the footer. Considering how many websites use these share buttons I don't think they should be affecting your website that severely. In Google Chrome developer tool under Network if you reload your page you can see what exactly is causing the slow page load.

I see the problem is your sharethis code is at the top of each post and it's displaying the snippet multiple times on your home page for each post. That means your site is making a lot of connections out bound when a visitor connects. Put sharethis code into the bottom of your posts at the end. And display an excerpt of the posts on your home page. You can customize the length of the post to show and more with WordPress's built in functions.

share|improve this answer
    
Addthis worked like charm. And thnks for other tips –  Mohit Jain Dec 9 '12 at 18:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.