estuary / marketing-site

0 stars 5 forks source link

`highlightjs` loaded 3 times on blog post page #405

Open travjenkins opened 1 month ago

travjenkins commented 1 month ago

Bug Something is loading https://cdn.jsdelivr.net/gh/highlightjs/cdn-release three times. Not 100% sure what is getting this.

This might just be for this : https://estuary.dev/chatgpt-for-sales/

Expected The library is only loaded once.

Screenshots image

Related Issues https://github.com/yusanshi/emgithub/issues/40

travjenkins commented 1 month ago

Tried looking through the code of rehype-highlight, lowlight, and highlightjs and would not find the loaded. I think this is coming directly from https://emgithub.com/

image

Yes - this is from emgithub for sure. image

travjenkins commented 1 month ago

We might want to look into a bit of a hacky solution where during blog post rehype we check if this is included and if so set something so that we know to include this library in the header.