We're making a WordPress plugin that generates an
iframe with a shortcode, and that
iframe that should work and display the same no matter what site, page or theme it's used on. The view is located at an URL inside the plugin folder.
Similarly, the plugin's styles and scripts shouldn't affect the site as a whole.
I'm not sure what the right way to do that isolation is. One way would be not to use
wp_footer() and put my styles and scripts directly in the HTML instead of enqueuing them.
That works, but I can't help but wonder if there could be a better "WordPress Way" to do this.
I also thought of just mass-dequeuing every script and stylesheet only at this URL, but the theme would still be free to inject arbitrary HTML using hooks.
What's the right way to get a "clean slate" to work on for my plugin page?