I implemented hover link preview on my site! It:
- is a bit wonky
- preserves privacy (images are fetched server-side, re-encoded as webp, served as data URLs)
- is nice/useful in my humble opinion
- is a bit wonky
- preserves privacy (images are fetched server-side, re-encoded as webp, served as data URLs)
- is nice/useful in my humble opinion
Comments
If you're taking suggestions:
- Have it show up after at least a second of hovering, the popups often block text I want to read on accident
- The images are huge compared to the text but I'm always more interested in the latter
There is a janky bug though I'm not sure if it's only on my machine: if the cursor is positioned just right (around the bottom of the link), the popup phases in and out of existence
So I added support for image/svg+xml data URLs, easy enough 🤷