11 May 2011

How to load AddThis script faster on your website?


Now most of you are using the AddThis social bookmarking and sharing service. Sometimes the webpage do not load faster due to the AddThis script. To avoid this problem do not use AddThis code more than one time on same website.

To improve the performance of AddThis on your site, the script should be loaded once per HTML page. To do this go to Blogger Dashboard >> Design >> Edit HTML >> Expand Widgets Template. And look for </head>

Now place following code just above this </head>

<script type="text/javascript">
var addthis_config = {"data_track_clickback":true};
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=[YOUR PROFILE ID]"></script>

Change YOUR PROFILE ID to your AddThis profile ID and save the template.

Related Posts

Post a Comment


Twitter Delicious Facebook Digg Stumbleupon Favorites More