How to do afterInteractive but on an iframe?
Unanswered
Irish Setter posted this in #help-forum
Irish SetterOP
How to do afterInteractive but on an iframe? I am having troubles with web core vitals ("Reduce the impact of third-party code ") because of my iframe. I have been searching for quite a while now and all the solutions where for <Script> tag. Is there an equivalent for iframes? If not, how would I be working around it?
I have tried setting a state variable for the src of the iframe and only updating it to the script with useEffect.
My goal is to not load the iframe on the initial page load since it is not essential for it to be loaded right away.
I have tried setting a state variable for the src of the iframe and only updating it to the script with useEffect.
My goal is to not load the iframe on the initial page load since it is not essential for it to be loaded right away.