And it has pretty negative impact on your site’s performance as measured by Google PageSpeed.
Let me illustrate this with my own website. The home page is pretty bare, it has a bit of text, a few small images in the footer, and one embedded Tweet.
Here’s the PageSpeed score for desktop and mobile side by side.
My site is already pretty optimized for performance, so it’s pretty easy to see what stands out.
A quick look at their privacy page gives you an idea. (Emphasis mine.)
When you view Twitter content or Twitter products integrated into other websites using Twitter for Websites, Twitter may receive information including the web page you visited, your IP address, browser type, operating system, and cookie information.
One alternative is to use Twitter’s API to get the details of embedded Tweets. And my new WordPress plugin does exactly that, you only need to provide your own API keys. (The plugin will still work without them, but some data, like profile pictures, number of likes and retweets, will be missing and media — images, GIFs, videos — will not render.)
Here’s my site’s PageSpeed score after enabling the plugin.
And here’s a few examples of the plugin in use, showing a variety of Tweets. (You can find even more on Botwiki.)
You also get website previews.
And just to drive the point home even more, here’s the PageSpeed score comparison for this very page.
You can use this project as a WordPress plugin (the source code is on GitHub) or host it yourself on Glitch (view source here).
Feel free to reach out with bug reports and feature requests!
And if you like this project, be sure to also check out my Simple Sharing Buttons Generator.