Questions tagged [twitter-button]

Twitter buttons help your visitors share content and connect on Twitter.

Twitter buttons help your visitors share content and connect on Twitter. There are several types of Twitter buttons supported:

  • Share a link - share a custom URL on Twitter
  • Follow - follow someone on Twitter
  • Hashtag - tweet with a certain hashtag on Twitter
  • Mention - mention someone in your own tweet on Twitter
22 questions
60
votes
9 answers

Social media buttons slow down website load time

I'm creating a simple and fast website, and I'm trying to optimize the site as much as I can. I noticed that social media buttons are slowing down the website by quite a lot. I'm including the Facebook Like Button, Twitter Button and Google+…
user2824854
9
votes
2 answers

Hide the word "followers" from Twitter follow button

Is there a way to modify the Twitter 'follow' button to display the number of followers in a bubble but hide the word "followers"? I basically want my 'follow' button to look the same as the 'tweet' button. The current code looks like this:
Matthew S
  • 843
  • 2
  • 12
  • 26
3
votes
2 answers

Google+ Button Mutates Tweet Button into another Google+ Button

I'm designing a web site where I've got a blog post and have the Facebook Like, Google Plus, Tweet buttons under the post. Google Plus documentation says that I should put the script at the head tag, but this just slows down the loading of my site,…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
3
votes
0 answers

Issues with dynamically changing Twitter Button url

I built a very simple random quote generator. A bunch of quotes are stored in an array and one is displayed at any given time due based on a variable that holds the current quote. If a user clicks a button for a new quote, that variable changes…
3
votes
0 answers

How to use Content Security Policy with social media buttons / widgets

I'm trying to use Content-Security-Policy (CSP) headers for a site that has social media buttons (youtube, twitter, facebook). However these widgets run scripts on a poorly specified list of 3rd party sites. The social media sites don't specify all…
2
votes
1 answer

Why are social network buttons always in an iframe?

I'm currently working on a button like the "Facebook like" and "Twitter" buttons. Since it will be a bit more complex, involving a tooltip that is shown after a click on the button, I cannot place it into an iframe. So I thought a bit about why…
2
votes
3 answers

Twitter button failed to load resource file://platform.twitter.com/widgets.js

When copying and pasting the following code for a Twitter button into a text file: