Index: src/wp-includes/js/media-views.js
===================================================================
--- src/wp-includes/js/media-views.js	(revision 29472)
+++ src/wp-includes/js/media-views.js	(working copy)
@@ -3243,7 +3243,7 @@
 			// Disable page scrolling.
 			$( 'body' ).addClass( 'modal-open' );
 
-			$el.show().find( '.media-modal-close' ).focus();
+			$el.show();
 
 			// Try to close the onscreen keyboard
 			if ( 'ontouchend' in document ) {
@@ -3257,6 +3257,8 @@
 				}
 			}
 
+			$el.find( '.media-modal-close' ).focus();
+
 			return this.propagate('open');
 		},
 
