On May 30, 2012 In Coding with , , , tags

Facebook, Twitter and Google plus share buttons without JavaScript

When ever i check a page load time, i found everything important except facebook’s like, twitter’s tweet and google’s plus one, buttons which have a lot of load time.so, from that time i was searching for no-javascript zero load time share buttons. Here it is.

Facebook Share Button without JS

<a target="_blank" href="http://www.facebook.com/sharer/sharer.php?u=#url">Like</a>

Replace #url with url to be Liked

For WordPress
<a target="_blank" href="http://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>">Like</a>

Tweet Button without JS

<a target="_blank" href="http://twitter.com/home?status=#url">Tweet</a>

Replace #url with url to be tweeted

For WordPress
<a target="_blank" href="http://twitter.com/home?status=<?php the_permalink(); ?>">Tweet</a>

Google Plus Button without JS

<a target="_blank" href="https://plusone.google.com/_/+1/confirm?hl=en&url=#URL">GPlus Share</a>

Replace #url with url to be tweeted

For WordPress
<a target="_blank" href="https://plusone.google.com/_/+1/confirm?hl=en&url=<?php the_permalink(); ?>">GPlus Share</a>

I hope these snippets help us make web and mobile load faster, would love feedback

  • michaeljmontana

    Thank you for the snippets! also want to thank you for the mobile website script. Awesome work! Again, Thank You!