3 ms·
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 pac
by transitivebs 6y 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.vercel.app/7b7f063709034186adbfb46f455d5065 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.vercel.app/7b7f063709034186adbfb46f455d5065 https://test-suite-trillcyborg-xyz-super-static-m9ptjhkfv.ve...
Also, this project is already being used in production by https://super.so https://super.so
- kirktrue 6y agoWould you consider putting this summary in the README? Took looking at the comments to understand the “why?”
- deleted 6y ago[deleted]
- transitivebs 6y agoJust added to the readme; thanks for the suggestion :)