tweetback icon indicating copy to clipboard operation
tweetback copied to clipboard

Super lightweight embed!

Open zachleat opened this issue 3 years ago • 1 comments

Maybe a WebC component??

zachleat avatar Nov 21 '22 17:11 zachleat

I think some low-hanging fruit would be a small CSS override that provides a better experience for <iframe> embeds. The only question is whether to load this CSS dynamically (triggered by window.self !== window.top or something like ?embed), or to generate a separate HTML file for this use case.

The downside of the former being that it won't work with JS disabled, while the latter means a lot of redundant HTML. I'd lean towards the separate HTML file though; for my own archive for example the individual HTML files make up 3% of the total filesize so duplicating that is not a big overall difference anyway.

s-ol avatar Aug 22 '25 22:08 s-ol