jakeisnt / site

quine-like personal website infrastructure
https://jake.isnt.online
Other
0 stars 0 forks source link

show open graph preview of websites on hover #20

Closed jakeisnt closed 1 year ago

jakeisnt commented 2 years ago

DOMParser is built into most browsers use it to parse doc, then access open graph information i header alternatively, create a dummy element on the page, set the inner html to the string to parse, and filter that header for "og:" tags to display the relevant properties

jakeisnt commented 2 years ago

i need to cache this information somehow by running this server-side

jakeisnt commented 1 year ago

yeah there's no way to make a cross site request on the client. the only way to do this is to make s request for the site or link and cache it (which isn't that bad).

jakeisnt commented 1 year ago

We can fetch info statically on the server and bake that information into an html file, then show it on hover

jakeisnt commented 1 year ago

The tool that would give us the highest lift, though, is just for the pages on our site - which we have full control over. We can handle those with https://github.com/jakeisnt/site/issues/77