Index: src/wp-includes/class.wp-scripts.php
===================================================================
--- src/wp-includes/class.wp-scripts.php	(revision 30223)
+++ src/wp-includes/class.wp-scripts.php	(working copy)
@@ -135,14 +135,30 @@
 		/** This filter is documented in wp-includes/class.wp-scripts.php */
 		$src = esc_url( apply_filters( 'script_loader_src', $src, $handle ) );
 
-		if ( ! $src )
+		if ( ! $src ) {
 			return true;
+		}
+		
+		$script_tag = "<script type='text/javascript' src='%s'></script>\n";
+		/**
+		 * Filter the script tag.
+		 *
+		 * @since 4.1.0
+		 *
+		 * @param string $script_tag Script tag.
+		 * @param string $src Source of script.
+		 * @param string $handle Script handle.
+		 */
+		$script_tag = apply_filters( 'script_loader_tag', $script_tag, $src, $handle );
+		
+		$script = sprintf( $script_tag, $src );
+		
+		if ( $this->do_concat ) {
+			$this->print_html .= $script;
+		} else {
+			echo $script;
+		} 
 
-		if ( $this->do_concat )
-			$this->print_html .= "<script type='text/javascript' src='$src'></script>\n";
-		else
-			echo "<script type='text/javascript' src='$src'></script>\n";
-
 		return true;
 	}
 
