diff --git src/wp-includes/script-loader.php src/wp-includes/script-loader.php
index b21f9a6f49..c0c8e6c0aa 100644
--- src/wp-includes/script-loader.php
+++ src/wp-includes/script-loader.php
@@ -124,8 +124,7 @@ function wp_default_packages_vendor( &$scripts ) {
 				'document.contains'   => 'wp-polyfill-node-contains',
 				'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata',
 				'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest',
-			),
-			'after'
+			)
 		)
 	);
 
