I have a page with tens or hundreds of posts, each one with social buttons. I just can\'t generate all the buttons for each url: it is too slow (facebook, g+, twitter, pinte
The standard Pinterest button code (which you can generate here), is an tag wrapping an
of the Pinterest button.
If you don't include the pinit.js
script on your page, this tag will work "as-is". You could improve the experience by registering your own click handler on these tags that opens a new window with appropriate dimensions, or at least adding
target="_blank"
to the tag to make it open clicks in a new window.
The tag syntax would look like:
If using the JavaScript versions of sharing buttons are ruining your page load times, you can improve your site by using asynchronous loading methods. For an example of doing this with the Pinterest button, check out my GitHub Pinterest button project with an improved HTML5 syntax.