Closed jakeisnt closed 1 year ago
i need to cache this information somehow by running this server-side
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).
We can fetch info statically on the server and bake that information into an html file, then show it on hover
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
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