twitter-button

Hide the word “followers” from Twitter follow button

徘徊边缘 提交于 2020-01-22 18:55:07
问题 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: <a href="https://twitter.com/User" class="twitter-follow-button" data-show-count="true" data-show-screen-name="false" data-dnt="true">Follow @User</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)) {js=d

Social media buttons slow down website load time

≡放荡痞女 提交于 2019-11-28 15:14:49
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+ Button. So I ran a few tests: Website without social media buttons, loading time 0.24s: Website with social media buttons, loading time 1.38s: Here is my code: <div id="social"> <!-- FB --> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id