[–] transitivebs 5y ago ↗ Twitter's embedding SDK is horribly slow and inefficient.For embedding tweets on your site (including SSR), this solution is 10-100x faster!This project packages up the awesome work that Vercel has done into a set of easy-to-use NPM packages.To really see the difference in practice, here's a page with a bunch of embedded tweets using the official Twitter iframe SDK https://test-suite-trillcyborg-xyz-super-static-ei3ayge5v.ve... and here's the optimized version using react-static-tweets https://test-suite-trillcyborg-xyz-super-static-m9ptjhkfv.ve...Also, this project is already being used in production by https://super.so [–] kirktrue 5y ago ↗ Would you consider putting this summary in the README? Took looking at the comments to understand the “why?” [–] [deleted] 5y ago ↗ (comment deleted) [–] transitivebs 5y ago ↗ Just added to the readme; thanks for the suggestion :)
[–] kirktrue 5y ago ↗ Would you consider putting this summary in the README? Took looking at the comments to understand the “why?” [–] [deleted] 5y ago ↗ (comment deleted) [–] transitivebs 5y ago ↗ Just added to the readme; thanks for the suggestion :)
[–] jhunter1016 5y ago ↗ There was a time where I ran a sports blog and embedding tweets from journos covering the sports in question was common. The iframe widget was always terrible. Wish I had this back then. Nice work!
7 comments
[ 280 ms ] story [ 1584 ms ] threadFor embedding tweets on your site (including SSR), this solution is 10-100x faster!
This project packages up the awesome work that Vercel has done into a set of easy-to-use NPM packages.
To really see the difference in practice, here's a page with a bunch of embedded tweets using the official Twitter iframe SDK https://test-suite-trillcyborg-xyz-super-static-ei3ayge5v.ve... and here's the optimized version using react-static-tweets https://test-suite-trillcyborg-xyz-super-static-m9ptjhkfv.ve...
Also, this project is already being used in production by https://super.so