I'm running WordPress 6.0 and using the Block Editor to enable content editors to paste links that generate the embed/iframe preview, as described here.
I've noticed from time to time (i.e. erratically) the embed script doesn't seem to run, and the link remains as static text without converting into the iframe preview.
I'm also using Swup.js to handle page transitions throughout the site, and I'm wondering if wp-embed has a method of some kind that I can hook into to force the script to run and/or refresh the iframe preview?
If one exists, I could simply run the function by hooking into a Swup event, as described here. Thanks for any insight!
*Edit: I should add that the links in question are just URLs to other web sites- not social links, YouTube, etc.