[ad_1]
The plugin I manage enqueues a JS in the <head> that allows our iframe to communicate with the parent page via URL parameters. If the JS doesn’t run at page load, the iframe ends up blank. I’m finding that some optimization plugins (WP Rocket, etc.) add a “defer” attribute to my script that breaks our functionality.
Is there anything I can do from within my plugin to prevent other plugins from deferring my JS or do I just have to tell users “be sure to exclude this page from any JS deferrals” on a case-by-case?
[ad_2]