The Google Map it broke was delivered by a Real Estate Service so it wouldn’t really be testable for you. The fix for me was adding code in a custom Must Use plugin that remove the plugin from loading except where necessary that I found to be on the video page itselg, while in wp-admin and calls to wp-json.
if(strpos($_SERVER['REQUEST_URI'], '/the-video-page/') === FALSE && strpos($_SERVER['REQUEST_URI'], '/wp-admin/') === FALSE && strpos($_SERVER['REQUEST_URI'], '/wp-json/') === FALSE) {
$key = array_search( 'utubevideo-gallery/utubevideo.php' , $plugins );
if ( false !== $key ) unset( $plugins[$key] );
}
A setting in your plugin that would allow it to only load on pages the shortcode is used on would be helpful.
Otherwise I’m not sure if it’s even possible to detect if babel-polyfill is already loaded and may even be a failing of the other plugin checking but since it’s all loading by google delivered scripts there just may not be a way of dealing with it outside of restricting where the scripts load.
Since I only use your plugin on one page, it was similar to implement my current fix than anything else at the moment.