Re:My stack is HTML+CSS
by leerob on Thursday January 07, 2021 @12:37PM
(#25674276)
Twitter embeds are equally bad. Ended up remaking them to output static HTML + CSS to improve perf (https://leerob.io/tweets).
[ Parent
| on HN ]
Same, I get ~500 tweets displayed with:
- No JavaScript necessary
- All profile images turned into one massive sprite
- Minimal payload size
Here are what the tweets look like when rendered: https://umaar.com/dev-tips/feedback
Here's the code to achieve that: https://github.com/umaar/better-twitter-embed
Well done, thanks for sharing!
Nice job!