function cleanUpScript(url) {
    var target = document.querySelector('script[src="' + url + '"]');
    if (target) {
      target.parentNode.removeChild(target);
    }
  }
/**
   * Clean up duplication script tag before load
   * ------------------------------------------------------------
   * @name cleanUpScript
   * @param {String} script url for remove
   */
Clean up duplication script tag before load

@name cleanUpScript
@param {String} script url for remove
Clean up duplication script tag before load @name cleanUpScript @param { String } script url for remove
function cleanUpScript(url) {
    var target = document.querySelector('script[src="' + url + '"]');
    if (target) {
      target.parentNode.removeChild(target);
    }
  }
function cleanUpScript ( url ) { var target = document . querySelector ( 'script[src="' + url + '"]' ) ; if ( target ) { target . parentNode . removeChild ( target ) ; } }
Clean up duplication script tag before load
Clean up duplication script tag before load