My goal sounded simple. All I wanted to do is showcase how many Twitter, Facebook, and Google Plus actions we have on our site. I didn’t want to waste a lot of time and read into the documentation of it. Just wanted a simple solution. I remembered from my days working in the agencies that sometimes we would use SHAREit/addThis. I Googled ’em and just added addThis to my site. Push the updates live and forget about them for a few days. A few days later I revisited my site again to discover my site load time was really hurting. From loading in less than 4-5 seconds (as I run everything through cdn – whenever I can). I discovered that my load time would sometimes go as high as 30 seconds. Looking deeper into it I discovered a few interesting things :
My site without any plugin home page loads in 3 seconds(+ 5 seconds of onload) with 605kb of data.
My site with addThis plugin home page loads in 10.8 seconds(+16 seconds of onlone) with 960.8kb of data.
My site with shareThis plugin home page loads in 22 seconds(+23 seconds of onlone) with 864.5kb of data.
This data makes it really clear that all options are bad for my site to have the home page take from total of 8 seconds of everything loading; to being over 20 is just not going to work. I need to figure out a better solution than that. I remember Hulu has a component on their site and I never really noticed any issues on their site. Lets explore and figure out what they are doing…
(pausing to explore)
They build a simple image that you click on to go to facebook/twitter and such. One that is very, very simple and smart. Ok, maybe that is the best path as their file size on it is really, really small. That means no dynamic of how many people posted notes. I can live with that. I don’t think it’s worth adding 400k to waste (and the extra wait). Ok, for now I’ll just put up the google+ one for a while. It’s smaller than having it all. I’ll get back to figuring out the better long term strategy at another date.
P.S. – I’ll start from now on to actually use the blog as a place where I think out loud. Feel free to follow or give me ideas as this is going to go where the wind blows 😛