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 :

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:


  <a href="">Share to Facebook</a>


With Twitter - you can include additional parameters to the share link, such as some text and an associated username too:

  <a href="">Share to Twitter</a>


  <a href="">Share to Google+</a>

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.

Social media Website design Website development


Mark Allen says:

Great post, useful reference point. If you're not using the OGP for Facebook to get the data for the share, you can send parameters like this s=100 &p[url]= &p[images][0]= &p[title]=My Great Title &p[summary]=Look at this great article about great things. Of course, you may want to urlencode the parameters too.

02 Dec 2012

Emil says:

Great! My website was significantly slower and I had to remove it but now I can put it back!

27 Jan 2013

gavsiu says:

I like how you actually implement what you talk about on your own site, unlike other blogs.

09 Mar 2013