Shareaholic and Site Speed


Everything is better when your site loads faster. Google ranks you higher. Users are happier. Bounce rates decrease. More of your content is shared and discovered. And Conversion rates increase. Every site owner cares about site speed, and our team at Shareaholic is obsessed by it! Not a day goes by where we're not thinking about and working on making Shareaholic even faster.

At Shareaholic, we use industry best practices to make our code as fast and unobtrusive as possible. Here are some of the techniques we employ to to keep your site running fast on Shareaholic!:

Premium Global CDN:

100% of Shareaholic JavaScript and related files are hosted on Amazon's CDN (Content Delivery Network) to make fetching it as blazing fast and reliable as possible. In fact, it's one of the fastest systems, hosted or not hosted, that you can use. To top it off, we cover all the bandwidth costs for the CDN, so you don't have to.

Thoughtfully Written, Optimized, Asynchronous Code:

Shareaholic uses asynchronous scripts. This means that your page can render more quickly. Instead of forcing users to wait for a script to finish downloading before the page renders, our script is downloaded in the background, in parallel. This practice provides a better, faster experience to your visitors with no wait time and slowing of your site. Even Google recognizes Shareaholic as one of the top supporters for asynchronous scripts!

Note: Many speed tests do not take into account the benefits of asynchronous loading. For more information, check out the Google PageSpeed Insight's articles about asynchronous loading:

Minification, Compression, Sprites, Caching, Preloading, HTTP/2:

We minify and Gzip compress all our files to help browsers download them faster. We also use image sprites extensively, which are also optimized. By combining images (ex. share button icons) into as few files as possible using image sprites, we reduce the number of round-trips and delays in downloading other resources, reduces request overhead, and can reduce the total number of bytes downloaded by a web page.

And lastly, we make extensive use of client and server-side caching strategies. Fetching resources over the network can be both slow and expensive - so we always aim to minimize them. We also serve everything over HTTP/2. In addition, all our server responses to static files (images, CSS and JavaScript) specify a caching policy to help the client determine if and when it can reuse a previously loaded file or not. We preload resources when appropriate to make the first paint time super fast.

Fewer Files, Greater Efficiency:

Shareaholic provides an optimized all encompassing solution that requires only one install of code to serve multiple apps, such as share buttons, related content, social analytics, and monetization tools. There are several site speed efficiencies gained by having one service provide all these essential services for your site. Plus, all our apps play well together. This has the added benefit of minimizing pesky conflicts between services.

Shareaholic also loads files related only to the specific apps and functionality that you enable for a page. This ensures smaller files being loaded, and quicker loading time.

Easy on Your Host:

Because all of the processing and collection runs on Shareaholic's servers and not yours, it doesn't cause any additional load on your hosting account. Instead of performing complex database queries on your database on every page load, Shareaholic builds its own relationships on our servers and then references them for lightning fast queries. Our beefy servers take on that load for you. This is specially important if your site is on a shared hosting plan.

Built for Scale & You're in Great Company to Boot:

Shareaholic is used and trusted by hundreds of thousands of websites like yours and touches over 450 million people each month. It doesn't matter if your website generates 1 view or 100 million. Shareaholic scales to any size and works just as well. Site owners trust us because at Shareaholic we have an established history of paying great attention to detail, speed, security and scalability, to make your and your site visitors experience the best it can be. We strive to "doing it right".




Tips on fine tuning your Shareaholic powered site to go faster:

There are certain features that do a bit more heavy lifting and can take a little longer to render on the page than others, because of their nature. There shouldn't be a need to turn any of these features off as they are optimized, but hey, we understand there is a delicate balance to be achieved between features and site speed, and the options are completely in your control. Here are a couple of options to make your pages load even faster:

  1. If you are using Shareaholic's WordPress or Drupal plugin, try turning on Server Side Share Counts API under advanced settings. This feature consolidates many client side HTTP requests to one single request for your visitors, which should make your site feel faster.

    In addition to saving on client side HTTP requests, Server Side Share Counts API is also optimized to use server side caching, so that it doesn't have to fetch Share Counts from each source (Facebook, Pinterest, Google+, etc) on every page load for each visitor. The API temporarily caches share count results in order to improve performance. In most cases, unless you're using a really bad shared host (if you are, consider switching!), should make your site feel faster.

    Disabling the Server Side Share Count API enables Client Side Share Counts. When Client Side Share Counts are enabled, the end user client calls the individual share service directly to gather share counts information. While we do optimize these calls, and cache them client-side, Server Side Share Counts Counts should generally be more performant.

  2. Try turning off Share Counts on your Index Pages (Index Pages are pages with more than 1 post). If you have multiple posts on your Index page (ex. your homepage) with share buttons enabled for each post, you may notice a slight delay in share buttons rendering completely as Share Counts need to be fetched for each post. For pages with only one post, share buttons and share counts should render more quickly since one has to retrieve share counts for just one URL.

  3. Try turning off 3rd party data services under Analytics Settings. The data collected from this is used to enhance analytics and the quality of Content Recommendations. Turning this off will reduce the number of redirect requests on your pages. We do not recommend turning this off, but it is an option.
Was this article helpful?