Shareaholic

JoshSexyBookmaks Got Sluggish
by at 5pm, January 16th, 2010

This blog post was originally posted on the SexyBookmarks’ blog. Shareaholic has since taken over the responsibility for the continued development and improvement of SexyBookmark publisher plugins!

slow

Any of you who work hard to optimize the load time of your blog have undoubtedly noticed that SexyBookmarks has become increasingly slow in recent months. The reason for this has to do with the idea which made it so fast in the beginning. See, when the plugin was first released, there were only about 15 or 20 icons available. So, merging all of those icons into one single sprite was still much faster loading than trying to make 15 or 20 separate HTTP requests to load each individual icon. This is no longer the case.

Now the plugin offers over 80 sites to choose from (current development version) which creates an image sprite that is nearly 6,000px wide and a whopping 237kb in weight! Most people aren’t going to choose anywhere near 80 sites to go in their bookmarking menu, and as such, they’ll be loading up those additional icons for no reason. Hence the sluggishness in load times.

The sad truth

We’ve known about this issue for a while, but just weren’t sure how to go about finding a solution. However, Jan over at Trick77 recently wrote an article warning users to be wary of SexyBookmarks due to the slow load times and massive image sizes… This really lit a fire under our butts and got us brainstorming, and I do believe we’ve found a solution… (we hope)

The good news!

We’ll be making use of PHP5 and the PHPGD library to take individual icons and merge them into a sprite based on what you select from now on. This means that only the icons you choose will be placed in the sprite, thus reducing the file size while also reducing HTTP requests because it’s still a single image sprite.

We’ve also realized that it was just plain stupid to merge all of the custom background images (eg. “Sharing is caring”, “Sharing is sexy”, etc) into a sprite! Nobody is going to display more than one background image at a time, so there’s no need to load them all when the page loads. So we’ll also be separating each of the background images so that you only load the one you need.

We’re also talking over ways to ensure that the plugin only loads the CSS associated with the icons you select to be in the menu. This will help to reduce the file size of the stylesheet that comes with the plugin. Also, we plan to “minify” the css/js that comes with the plugin, which will reduce the file sizes as well. On top of that, we’ll be loading the JS in the footer now rather than in the header.

Last but not least…

Even after I separated all of the icons individually, each icon was about 5.2kb in size. This isn’t terrible, but when you multiply that by 80 icons it adds up to a little over 400kb! This is a problem! So, I took the time to run each individual icon through Smush.it and saw a savings of around 50% on each icon! I also ran each of the background images through the program as well, and saw similar savings. So, now all of the background images AND icons all together only come to around 212kb, which is a HUGE savings in file sizes!

Now couple that with the features mentioned above, and v3.0 of SexyBookmarks should load like the web’s equivalent of a Ferrari.


Done reading? subscribe: To get an automatic feed of all future posts subscribe here, or to receive them via email enter your email address in the box in the right column.

Link to This Post:    

Posted under: Publishers, Updates

Comments have been disabled for this post.
Sort: Newest | Oldest

Josh, How do i integrate this on a NING.com site ?

@Dayna:

I'm sorry about that... Looks like I missed something in my rush to get the version released... I've updated the SVN, so please delete the copy you're using now and redownload to fix the issue.

Again, sorry!

Upgraded to the latest version and got a fatal error.

http://wordpress.org/support/topic/359101

Thanks for optimising the loading time of the plugin! :)

SexyBookmarks is awesome, it looks so nice at the foot of my posts. I wish I could make a donation but I have no credit card so I'll just $mile at google for now.

We're glad you're excited! Stay tuned for even more great features to come!

Awesome news! Can't wait to get the new Sexy Bookmarks working on our site. Thanks for all the hard work you've put in Josh.

Update: Custom Sprite feature has been added in the trunk version, and will be released soon.

One of the reasons I like plugins like SexyBookmarks or Bookmarkify is that they don't require accounts at externals sites (like ShareThis).

thanks for an amazing plugin. I don't know much about the tech aspect, but it sure looks like you are handling your bizness!

Hi Ileane,

Thanks so much for your informative video! We appreciate all types of publicity, but I have to admit... You're video is one of the few out there covering SexyBookmarks. haha

Thanks again, and in your words: "Peace!"

Hi, I just added SexyBookmarks to my blogs. I also did a video on YouTube to show how to configure the plugin. If you would like to take a look here is the url http://www.youtube.com/watch?v=8TmrDp_r7PA

Thanks for the plugin, I think it's great!@Ileane

That sounds great. Thank's a lot for a quick reply.

The text can be changed by using Poedit or some other translation software to translate the text strings that are located inside wp-content/plugins/sexybookmarks/languages/default.po

My WordPress blog is meant for Icelandic readers. Is there anyway I can change the pop-up that says for example: "Share this on Facebook" when I hoover over the Facebook icon into Icelandic? I have checked Sexy bookmarks php and can´t find the source for it there. Is this something that comes with the http address of Facebook (or Twitter for that matter) and you have no control over?

Haha, yea we've got tons of plans and ideas... but due to Jamie having all kinds of exams and other University related priorities, it's on hold at the moment.

I'm really looking forward to the launch of Blog2Life, I'm sure you have some amazing results to share.

Thanks Kieran, we definitely try to keep it alive... With the amount of support requests and features, it's becoming more and more like a full time JOB the bigger it gets! haha

Haha, thanks Jan! If it weren't for your article, we'd most likely still have this on the "backburner" until it became critical... So thanks for that.

Sounds like there are some really great things coming down the pipeline. I look forward to the improvements and thank you for your time. There are so many plugins that are left for dead once they're live. It is refreshing to see such a good one that continues to improve!

Great news Josh, I'm looking forward to testdrive the new Ferrari (a.k.a v3.0)!

Cheers,
Jan

Well, our next big feature will be the addition of multiple skins... Different icon sets for both light and dark backgrounds so as to make the plugin more beneficial for everyone.

We're loving the new icon you made for us, good job.

Thanks man, after we get this efficiency thing sorted, be on the lookout for more aesthetic features... *ahem* (new icons anyone?)

Excellent news Josh, you guys have done and are doing some fantastic things with this plugin.