pixelastic / norska

🏔️ Custom SSG using Pug, Webpack, PostCSS and Tailwind.
https://projects.pixelastic.com/norska/
MIT License
8 stars 0 forks source link

Fix screenshots in metadata #97

Closed pixelastic closed 3 years ago

pixelastic commented 3 years ago

Screenshots in metadata do not correctly register pages that take some time to load. https://gamemaster.pixelastic.com/ is a good example. Or maybe it's because it doesn't load JS. In any case, the OG image is not right.

pixelastic commented 3 years ago

I added a waitForTimeout of 5s. This is pretty long, but because the image is cached, one request should be enough; so better safe than sorry.

Also, it's important to keep in mind that I have 50req/day on that endpoint. This should work ok if another IP that mine (external crawlers?) request them