It would improve performance for initial page loads for pages that use the interactive embed if you include the loading='lazy attribute on the iframe you create in the script. The support in browsers for this is quite good now.
Codepen has similar embed functionality and includes it as per screenshot below.
Hi,
Thanks for creating this.
It would improve performance for initial page loads for pages that use the interactive embed if you include the
loading='lazy
attribute on theiframe
you create in the script. The support in browsers for this is quite good now.Codepen has similar embed functionality and includes it as per screenshot below.
I can submit a PR if you wish?
All the best
Rob