If you are wanting to reference a tweet on a page, don't embed, just use a simple image + alt text + link. Your users will thank you!
• LCP: 600ms slower
• 2.7MB more JS! (😱)
• 25 more requests
• LH score dropped 50%
Test: real Moto G4 with 3G Fast.
#perfmatters #webperf
7
15
64
What about inlining a copy of the tweet, with minimum styles, like I did here for example?
nicolas-hoizey.com/notes/202…
1
0
2
I’m using this plugin for @eleven_ty , if it can be an inspiration:
npmjs.com/package/eleventy-p…
8:57 AM · Jan 17, 2021
0
0
14





