I need to refresh the page to see my gist embed
I am using Astro with AstroPaper theme and embedding my gist within this blog setup.
Not sure if you're using lazy loading behind the scenes but it isn't loading at all unless I refresh the page, which isn't ideal.
Can you check what the console says ?
Can you check what the console says ?
Seems you're loading the script with document.write and Chromium is throwing an error, I really don't know the exact error, but I know it is with the gist script.
document.write('<link rel="stylesheet" href="https://www.example.org/assets/embed-3b762c54.css">');
document.write("\u003cdiv class=\"opengist-embed\" id=\....)
Seems you can't use document.write to load an async script. Do you need some help with this? My gig was mainly frontend so just let me know.
Yeah document.write is deprecated and has been for a very long time. See: Document: write() method - Web APIs | MDN