JavaScript-less social share links
Social sharing widgets are everywhere these days and on a growing number of sites they even follow you down the page just so you’re blatantly aware of where they are at all times.
As well as just being visual pollution on a webpage, these widgets are resource heavy too, chocked full of extra JavaScript which needs to be loaded for each individual widget - all of which slows your site down!
This is an issue I wrote about in my recent website redesign post and after seeing this tweet :
Facebook. Twitter. Google+, I love you all (except you Google) but I want share buttons without a heavy javascript load. Y U NO DO THAT?!
— Zach Inglis (@zachinglis) May 1, 2012
I thought I’d share how to create a simple share link to Facebook, Twitter & Google+ all of which can be seen in action below this post:
</code>
With Twitter - you can include additional parameters to the share link, such as some text and an associated username too:
</code>
Google+
</code>
I’m sure there are similar examples for other networks out there - it’s essentially just linking to the share box but with some predetermined parameters in places.
Filed under: