Index: Gruntfile.js
===================================================================
--- Gruntfile.js	(revision 46818)
+++ Gruntfile.js	(working copy)
@@ -162,6 +162,9 @@
 						[ WORKING_DIR + 'wp-includes/js/backbone.js' ]: [ './node_modules/backbone/backbone.js' ],
 						[ WORKING_DIR + 'wp-includes/js/clipboard.js' ]: [ './node_modules/clipboard/dist/clipboard.js' ],
 						[ WORKING_DIR + 'wp-includes/js/hoverIntent.js' ]: [ './node_modules/jquery-hoverintent/jquery.hoverIntent.js' ],
+
+						// Renamed to avoid conflict with jQuery hoverIntent.min.js (after minifying)
+						[ WORKING_DIR + 'wp-includes/js/hoverintent-js.min.js' ]: [ './node_modules/hoverintent/dist/hoverintent.min.js' ],
 						[ WORKING_DIR + 'wp-includes/js/imagesloaded.min.js' ]: [ './node_modules/imagesloaded/imagesloaded.pkgd.min.js' ],
 						[ WORKING_DIR + 'wp-includes/js/jquery/jquery-migrate.js' ]: [ './node_modules/jquery-migrate/dist/jquery-migrate.js' ],
 						[ WORKING_DIR + 'wp-includes/js/jquery/jquery-migrate.min.js' ]: [ './node_modules/jquery-migrate/dist/jquery-migrate.min.js' ],
Index: package-lock.json
===================================================================
--- package-lock.json	(revision 46818)
+++ package-lock.json	(working copy)
@@ -13217,6 +13217,11 @@
 				"jquery": ">=1.7"
 			}
 		},
+		"hoverintent": {
+			"version": "2.2.1",
+			"resolved": "https://registry.npmjs.org/hoverintent/-/hoverintent-2.2.1.tgz",
+			"integrity": "sha512-VyU54L1xW5rSqpsv/LJ6ecymGXsXXeGs9iVEKot4kKBCq5UodSAuy3DqX686LZxEpaMEfeCHPu4LndsMX5Q9eQ=="
+		},
 		"jquery-hoverintent": {
 			"version": "1.8.3",
 			"resolved": "https://registry.npmjs.org/jquery-hoverintent/-/jquery-hoverintent-1.8.3.tgz",
Index: package.json
===================================================================
--- package.json	(revision 46818)
+++ package.json	(working copy)
@@ -122,6 +122,7 @@
 		"jquery-form": "4.2.1",
 		"jquery-hoverintent": "1.8.3",
 		"jquery-ui": "https://github.com/jquery/jquery-ui/archive/1.11.4.tar.gz",
+		"hoverintent": "2.2.1",
 		"lodash": "4.17.15",
 		"masonry-layout": "3.3.2",
 		"moment": "2.22.2",
Index: src/js/_enqueues/admin/common.js
===================================================================
--- src/js/_enqueues/admin/common.js	(revision 46818)
+++ src/js/_enqueues/admin/common.js	(working copy)
@@ -652,49 +652,51 @@
 	}
 
 	if ( ! isIOS && ! isAndroid ) {
-		$adminmenu.find( 'li.wp-has-submenu' ).hoverIntent({
+		$adminmenu.find( 'li.wp-has-submenu' ).each( function( i, el ) {
+			hoverintent(
+				el,
+				/**
+				 * Opens the submenu when hovered over the menu item for desktops.
+				 *
+				 * @returns {void}
+				 */
+				function() {
+					var $menuItem = $( this ),
+						$submenu = $menuItem.find( '.wp-submenu' ),
+						top = parseInt( $submenu.css( 'top' ), 10 );
 
-			/**
-			 * Opens the submenu when hovered over the menu item for desktops.
-			 *
-			 * @return {void}
-			 */
-			over: function() {
-				var $menuItem = $( this ),
-					$submenu = $menuItem.find( '.wp-submenu' ),
-					top = parseInt( $submenu.css( 'top' ), 10 );
-
-				if ( isNaN( top ) || top > -5 ) { // the submenu is visible
-					return;
-				}
+					if ( isNaN( top ) || top > -5 ) { // the submenu is visible
+						return;
+					}
 
-				if ( $adminmenu.data( 'wp-responsive' ) ) {
-					// The menu is in responsive mode, bail
-					return;
-				}
+					if ( $adminmenu.data( 'wp-responsive' ) ) {
+						// The menu is in responsive mode, bail
+						return;
+					}
 
-				adjustSubmenu( $menuItem );
-				$adminmenu.find( 'li.opensub' ).removeClass( 'opensub' );
-				$menuItem.addClass( 'opensub' );
-			},
+					adjustSubmenu( $menuItem );
+					$adminmenu.find( 'li.opensub' ).removeClass( 'opensub' );
+					$menuItem.addClass( 'opensub' );
+				},
+				/**
+				 * Closes the submenu when no longer hovering the menu item.
+				 *
+				 * @returns {void}
+				 */
+				function() {
+					if ( $adminmenu.data( 'wp-responsive' ) ) {
+						// The menu is in responsive mode, bail
+						return;
+					}
 
-			/**
-			 * Closes the submenu when no longer hovering the menu item.
-			 *
-			 * @return {void}
-			 */
-			out: function(){
-				if ( $adminmenu.data( 'wp-responsive' ) ) {
-					// The menu is in responsive mode, bail
-					return;
+					$( this ).removeClass( 'opensub' ).find( '.wp-submenu' ).css( 'margin-top', '' );
 				}
-
-				$( this ).removeClass( 'opensub' ).find( '.wp-submenu' ).css( 'margin-top', '' );
-			},
-			timeout: 200,
-			sensitivity: 7,
-			interval: 90
-		});
+			).options( {
+				timeout: 200,
+				sensitivity: 7,
+				interval: 90
+			} );
+		} );
 
 		/**
 		 * Opens the submenu on when focused on the menu item.
Index: src/js/_enqueues/lib/admin-bar.js
===================================================================
--- src/js/_enqueues/lib/admin-bar.js	(revision 46818)
+++ src/js/_enqueues/lib/admin-bar.js	(working copy)
@@ -1,550 +1,389 @@
 /**
  * @output wp-includes/js/admin-bar.js
  */
-
-/* jshint loopfunc: true */
-// use jQuery and hoverIntent if loaded
-if ( typeof(jQuery) != 'undefined' ) {
-	if ( typeof(jQuery.fn.hoverIntent) == 'undefined' ) {
-		/* jshint ignore:start */
-		// hoverIntent v1.8.1 - Copy of wp-includes/js/hoverIntent.min.js
-		!function(a){a.fn.hoverIntent=function(b,c,d){var e={interval:100,sensitivity:6,timeout:0};e="object"==typeof b?a.extend(e,b):a.isFunction(c)?a.extend(e,{over:b,out:c,selector:d}):a.extend(e,{over:b,out:b,selector:c});var f,g,h,i,j=function(a){f=a.pageX,g=a.pageY},k=function(b,c){return c.hoverIntent_t=clearTimeout(c.hoverIntent_t),Math.sqrt((h-f)*(h-f)+(i-g)*(i-g))<e.sensitivity?(a(c).off("mousemove.hoverIntent",j),c.hoverIntent_s=!0,e.over.apply(c,[b])):(h=f,i=g,c.hoverIntent_t=setTimeout(function(){k(b,c)},e.interval),void 0)},l=function(a,b){return b.hoverIntent_t=clearTimeout(b.hoverIntent_t),b.hoverIntent_s=!1,e.out.apply(b,[a])},m=function(b){var c=a.extend({},b),d=this;d.hoverIntent_t&&(d.hoverIntent_t=clearTimeout(d.hoverIntent_t)),"mouseenter"===b.type?(h=c.pageX,i=c.pageY,a(d).on("mousemove.hoverIntent",j),d.hoverIntent_s||(d.hoverIntent_t=setTimeout(function(){k(c,d)},e.interval))):(a(d).off("mousemove.hoverIntent",j),d.hoverIntent_s&&(d.hoverIntent_t=setTimeout(function(){l(c,d)},e.timeout)))};return this.on({"mouseenter.hoverIntent":m,"mouseleave.hoverIntent":m},e.selector)}}(jQuery);
-		/* jshint ignore:end */
-	}
-	jQuery(document).ready(function($){
-		var adminbar = $('#wpadminbar'), refresh, touchOpen, touchClose, disableHoverIntent = false;
+/**
+ * Admin bar with Vanilla JS, no external dependencies.
+ *
+ * @param {Object} document  The document object.
+ * @param {Object} window    The window object.
+ * @param {Object} navigator The navigator object.
+ *
+ * @return {void}
+ */
+( function( document, window, navigator ) {
+	document.addEventListener( 'DOMContentLoaded', function() {
+		var adminBar = document.getElementById( 'wpadminbar' ),
+			topMenuItems = adminBar.querySelectorAll( 'li.menupop' ),
+			allMenuItems = adminBar.querySelectorAll( '.ab-item' ),
+			adminBarLogout = document.getElementById( 'wp-admin-bar-logout' ),
+			adminBarSearchForm = document.getElementById( 'adminbarsearch' ),
+			shortlink = document.getElementById( 'wp-admin-bar-get-shortlink' ),
+			skipLink = adminBar.querySelector( '.screen-reader-shortcut' ),
+			mobileEvent = /Mobile\/.+Safari/.test( navigator.userAgent ) ? 'touchstart' : 'click',
+			adminBarSearchInput,
+			i;
 
 		/**
-		 * Forces the browser to refresh the tabbing index.
-		 *
-		 * @since 3.3.0
-		 *
-		 * @param {number}      i  The index of the HTML element to remove the tab index
-		 *                         from. This parameter is necessary because we use this
-		 *                         function in .each calls.
-		 * @param {HTMLElement} el The HTML element to remove the tab index from.
-		 *
-		 * @return {void}
+		 * Remove nojs class after the DOM is loaded.
 		 */
-		refresh = function(i, el){
-			var node = $(el), tab = node.attr('tabindex');
-			if ( tab )
-				node.attr('tabindex', '0').attr('tabindex', tab);
-		};
+		adminBar.classList.remove( 'nojs' );
 
-		/**
-		 * Adds or removes the hover class on touch.
-		 *
-		 * @since 3.5.0
-		 *
-		 * @param {boolean} unbind If true removes the wp-mobile-hover class.
-		 *
-		 * @return {void}
-		 */
-		touchOpen = function(unbind) {
-			adminbar.find('li.menupop').on('click.wp-mobile-hover', function(e) {
-				var el = $(this);
-
-				if ( el.parent().is('#wp-admin-bar-root-default') && !el.hasClass('hover') ) {
-					e.preventDefault();
-					adminbar.find('li.menupop.hover').removeClass('hover');
-					el.addClass('hover');
-				} else if ( !el.hasClass('hover') ) {
-					e.stopPropagation();
-					e.preventDefault();
-					el.addClass('hover');
-				} else if ( ! $( e.target ).closest( 'div' ).hasClass( 'ab-sub-wrapper' ) ) {
-					// We're dealing with an already-touch-opened menu genericon (we know el.hasClass('hover')),
-					// so close it on a second tap and prevent propag and defaults. See #29906
-					e.stopPropagation();
-					e.preventDefault();
-					el.removeClass('hover');
+		if ( 'ontouchstart' in window ) {
+			/**
+			 * Remove hover class when the user touches outside the menu items.
+			 */
+			document.body.addEventListener( mobileEvent, function( e ) {
+				if ( ! getClosest( e.target, 'li.menupop' ) ) {
+					removeAllHoverClass( topMenuItems );
 				}
+			} );
 
-				if ( unbind ) {
-					$('li.menupop').off('click.wp-mobile-hover');
-					disableHoverIntent = false;
+			/**
+			 * Add listener for menu items to toggle hover class by touches.
+			 * Remove the callback later for better performance.
+			 */
+			adminBar.addEventListener( 'touchstart', function bindMobileEvents() {
+				for ( var i = 0; i < topMenuItems.length; i++ ) {
+					topMenuItems[i].addEventListener( 'click', mobileHover.bind( null, topMenuItems ) );
 				}
-			});
-		};
+
+				adminBar.removeEventListener( 'touchstart', bindMobileEvents );
+			} );
+		}
 
 		/**
-		 * Removes the hover class if clicked or touched outside the admin bar.
-		 *
-		 * @since 3.5.0
-		 *
-		 * @return {void}
+		 * Scroll page to top when clicking on the admin bar.
 		 */
-		touchClose = function() {
-			var mobileEvent = /Mobile\/.+Safari/.test(navigator.userAgent) ? 'touchstart' : 'click';
-			// close any open drop-downs when the click/touch is not on the toolbar
-			$(document.body).on( mobileEvent+'.wp-mobile-hover', function(e) {
-				if ( !$(e.target).closest('#wpadminbar').length )
-					adminbar.find('li.menupop.hover').removeClass('hover');
-			});
-		};
-
-		adminbar.removeClass('nojq').removeClass('nojs');
+		adminBar.addEventListener( 'click', scrollToTop );
 
-		// If clicked on the adminbar add the hoverclass, if clicked outside it remove
-		// it.
-		if ( 'ontouchstart' in window ) {
-			adminbar.on('touchstart', function(){
-				touchOpen(true);
-				disableHoverIntent = true;
-			});
-			touchClose();
-		} else if ( /IEMobile\/[1-9]/.test(navigator.userAgent) ) {
-			touchOpen();
-			touchClose();
-		}
-
-		// Adds or removes the hover class based on the hover intent.
-		adminbar.find('li.menupop').hoverIntent({
-			over: function() {
-				if ( disableHoverIntent )
-					return;
-
-				$(this).addClass('hover');
-			},
-			out: function() {
-				if ( disableHoverIntent )
-					return;
-
-				$(this).removeClass('hover');
-			},
-			timeout: 180,
-			sensitivity: 7,
-			interval: 100
-		});
-
-		// Prevents the toolbar from covering up content when a hash is present in the
-		// URL.
-		if ( window.location.hash )
-			window.scrollBy( 0, -32 );
+		for ( i = 0; i < topMenuItems.length; i++ ) {
+			/**
+			 * Adds or removes the hover class based on the hover intent.
+			 */
+			hoverintent(
+				topMenuItems[i],
+				addHoverClass.bind( null, topMenuItems[i] ),
+				removeHoverClass.bind( null, topMenuItems[i] )
+			).options( {
+				timeout: 180,
+			} );
 
-		/**
-		 * Handles the selected state of the Shortlink link.
-		 *
-		 * When the input is visible the link should be selected, when the input is
-		 * unfocused the link should be unselected.
-		 *
-		 * @param {Object} e The click event.
-		 *
-		 * @return {void}
-		 **/
-		$('#wp-admin-bar-get-shortlink').click(function(e){
-			e.preventDefault();
-			$(this).addClass('selected').children('.shortlink-input').blur(function(){
-				$(this).parents('#wp-admin-bar-get-shortlink').removeClass('selected');
-			}).focus().select();
-		});
+			/**
+			 * Toggle hover class if the enter key is pressed.
+			 */
+			topMenuItems[i].addEventListener( 'keydown', toggleHoverIfEnter );
+		}
 
 		/**
-		 * Removes the hoverclass if the enter key is pressed.
-		 *
-		 * Makes sure the tab index is refreshed by refreshing each ab-item
-		 * and its children.
-		 *
-		 * @param {Object} e The keydown event.
-		 *
-		 * @return {void}
+		 * Remove hover class if the escape key is pressed.
 		 */
-		$('#wpadminbar li.menupop > .ab-item').bind('keydown.adminbar', function(e){
-			// Key code 13 is the enter key.
-			if ( e.which != 13 )
-				return;
-
-			var target = $(e.target),
-				wrap = target.closest('.ab-sub-wrapper'),
-				parentHasHover = target.parent().hasClass('hover');
-
-			e.stopPropagation();
-			e.preventDefault();
-
-			if ( !wrap.length )
-				wrap = $('#wpadminbar .quicklinks');
+		for ( i = 0; i < allMenuItems.length; i++ ) {
+			allMenuItems[i].addEventListener( 'keydown', removeHoverIfEscape );
+		}
 
-			wrap.find('.menupop').removeClass('hover');
+		if ( adminBarSearchForm ) {
+			adminBarSearchInput = document.getElementById( 'adminbar-search' );
 
-			if ( ! parentHasHover ) {
-				target.parent().toggleClass('hover');
-			}
+			/**
+			 * Adds the adminbar-focused class on focus.
+			 */
+			adminBarSearchInput.addEventListener( 'focus', function() {
+				adminBarSearchForm.classList.add( 'adminbar-focused' );
+			} );
 
-			target.siblings('.ab-sub-wrapper').find('.ab-item').each(refresh);
-		}).each(refresh);
+			/**
+			 * Removes the adminbar-focused class on blur.
+			 */
+			adminBarSearchInput.addEventListener( 'blur', function() {
+				adminBarSearchForm.classList.remove( 'adminbar-focused' );
+			} );
+		}
 
 		/**
-		 * Removes the hover class when the escape key is pressed.
-		 *
-		 * Makes sure the tab index is refreshed by refreshing each ab-item
-		 * and its children.
-		 *
-		 * @param {Object} e The keydown event.
-		 *
-		 * @return {void}
+		 * Focus the target of skip link after pressing Enter.
 		 */
-		$('#wpadminbar .ab-item').bind('keydown.adminbar', function(e){
-			// Key code 27 is the escape key.
-			if ( e.which != 27 )
-				return;
-
-			var target = $(e.target);
-
-			e.stopPropagation();
-			e.preventDefault();
+		skipLink.addEventListener( 'keydown', focusTargetAfterEnter );
 
-			target.closest('.hover').removeClass('hover').children('.ab-item').focus();
-			target.siblings('.ab-sub-wrapper').find('.ab-item').each(refresh);
-		});
+		if ( shortlink ) {
+			shortlink.addEventListener( 'click', clickShortlink );
+		}
 
 		/**
-		 * Scrolls to top of page by clicking the adminbar.
-		 *
-		 * @param {Object} e The click event.
-		 *
-		 * @return {void}
+		 * Prevents the toolbar from covering up content when a hash is present
+		 * in the URL.
 		 */
-		adminbar.click( function(e) {
-			if ( e.target.id != 'wpadminbar' && e.target.id != 'wp-admin-bar-top-secondary' ) {
-				return;
-			}
+		if ( window.location.hash ) {
+			window.scrollBy( 0, -32 );
+		}
 
-			adminbar.find( 'li.menupop.hover' ).removeClass( 'hover' );
-			$( 'html, body' ).animate( { scrollTop: 0 }, 'fast' );
-			e.preventDefault();
-		});
+		/**
+		 * Add no-font-face class to body if needed.
+		 */
+		if ( navigator.userAgent && document.body.className.indexOf( 'no-font-face' ) === -1 &&
+			/Android (1.0|1.1|1.5|1.6|2.0|2.1)|Nokia|Opera Mini|w(eb)?OSBrowser|webOS|UCWEB|Windows Phone OS 7|XBLWP7|ZuneWP7|MSIE 7/.test( navigator.userAgent ) ) {
+			document.body.className += ' no-font-face';
+		}
 
 		/**
-		 * Sets the focus on an element with a href attribute.
-		 *
-		 * The timeout is used to fix a focus bug in WebKit.
-		 *
-		 * @param {Object} e The keydown event.
-		 *
-		 * @return {void}
+		 * Clear sessionStorage on logging out.
 		 */
-		$('.screen-reader-shortcut').keydown( function(e) {
-			var id, ua;
+		adminBarLogout.addEventListener( 'click', emptySessionStorage );
+	} );
 
-			if ( 13 != e.which )
-				return;
+	/**
+	 * Remove hover class for top level menu item when escape is pressed.
+	 *
+	 * @since 5.3.0
+	 *
+	 * @param {Event} e The keydown event.
+	 */
+	function removeHoverIfEscape( e ) {
+		var wrapper;
 
-			id = $( this ).attr( 'href' );
+		if ( e.which != 27 ) {
+			return;
+		}
 
-			ua = navigator.userAgent.toLowerCase();
+		wrapper = getClosest( e.target, '.menupop' );
 
-			if ( ua.indexOf('applewebkit') != -1 && id && id.charAt(0) == '#' ) {
-				setTimeout(function () {
-					$(id).focus();
-				}, 100);
-			}
-		});
+		if ( ! wrapper ) {
+			return;
+		}
 
-		$( '#adminbar-search' ).on({
-			/**
-			 * Adds the adminbar-focused class on focus.
-			 *
-			 * @return {void}
-			 */
-			focus: function() {
-				$( '#adminbarsearch' ).addClass( 'adminbar-focused' );
-			/**
-			 * Removes the adminbar-focused class on blur.
-			 *
-			 * @return {void}
-			 */
-			}, blur: function() {
-				$( '#adminbarsearch' ).removeClass( 'adminbar-focused' );
-			}
-		} );
+		wrapper.querySelector( '.menupop > .ab-item' ).focus();
+		removeHoverClass( wrapper );
+	}
 
-		if ( 'sessionStorage' in window ) {
-			/**
-			 * Empties sessionStorage on logging out.
-			 *
-			 * @return {void}
-			 */
-			$('#wp-admin-bar-logout a').click( function() {
-				try {
-					for ( var key in sessionStorage ) {
-						if ( key.indexOf('wp-autosave-') != -1 )
-							sessionStorage.removeItem(key);
-					}
-				} catch(e) {}
-			});
+	/**
+	 * Toggle hover class for top level menu item when enter is pressed.
+	 *
+	 * @since 5.3.0
+	 *
+	 * @param {Event} e The keydown event.
+	 */
+	function toggleHoverIfEnter( e ) {
+		var wrapper;
+
+		if ( e.which != 13 ) {
+			return;
 		}
 
-		if ( navigator.userAgent && document.body.className.indexOf( 'no-font-face' ) === -1 &&
-			/Android (1.0|1.1|1.5|1.6|2.0|2.1)|Nokia|Opera Mini|w(eb)?OSBrowser|webOS|UCWEB|Windows Phone OS 7|XBLWP7|ZuneWP7|MSIE 7/.test( navigator.userAgent ) ) {
+		if ( !! getClosest( e.target, '.ab-sub-wrapper' ) ) {
+			return;
+		}
 
-			document.body.className += ' no-font-face';
+		wrapper = getClosest( e.target, '.menupop' );
+
+		if ( ! wrapper ) {
+			return;
+		}
+
+		e.preventDefault();
+		if ( hasHoverClass( wrapper ) ) {
+			removeHoverClass( wrapper );
+		} else {
+			addHoverClass( wrapper );
 		}
-	});
-} else {
+	}
+
 	/**
-	 * Wrapper function for the adminbar that's used if jQuery isn't available.
+	 * Focus the target of skip link after pressing Enter.
 	 *
-	 * @param {Object} d The document object.
-	 * @param {Object} w The window object.
+	 * @since 5.3.0
 	 *
-	 * @return {void}
+	 * @param {Event} e The keydown event.
 	 */
-	(function(d, w) {
-		/**
-		 * Adds an event listener to an object.
-		 *
-		 * @since 3.1.0
-		 *
-		 * @param {Object}   obj  The object to add the event listener to.
-		 * @param {string}   type The type of event.
-		 * @param {function} fn   The function to bind to the event listener.
-		 *
-		 * @return {void}
-		 */
-		var addEvent = function( obj, type, fn ) {
-			if ( obj && typeof obj.addEventListener === 'function' ) {
-				obj.addEventListener( type, fn, false );
-			} else if ( obj && typeof obj.attachEvent === 'function' ) {
-				obj.attachEvent( 'on' + type, function() {
-					return fn.call( obj, window.event );
-				} );
-			}
-		},
+	function focusTargetAfterEnter( e ) {
+		var id, userAgent;
 
-		aB, hc = new RegExp('\\bhover\\b', 'g'), q = [],
-		rselected = new RegExp('\\bselected\\b', 'g'),
+		if ( 13 !==	e.which ) {
+			return;
+		}
 
-		/**
-		 * Gets the timeout ID of the given element.
-		 *
-		 * @since 3.1.0
-		 *
-		 * @param {HTMLElement} el The HTML element.
-		 *
-		 * @return {number|boolean} The ID value of the timer that is set or false.
-		 */
-		getTOID = function(el) {
-			var i = q.length;
-			while ( i-- ) {
-				if ( q[i] && el == q[i][1] )
-					return q[i][0];
-			}
-			return false;
-		},
+		id = e.target.getAttribute( 'href' );
+		userAgent = navigator.userAgent.toLowerCase();
 
-		/**
-		 * Adds the hoverclass to menu items.
-		 *
-		 * @since 3.1.0
-		 *
-		 * @param {HTMLElement} t The HTML element.
-		 *
-		 * @return {void}
-		 */
-		addHoverClass = function(t) {
-			var i, id, inA, hovering, ul, li,
-				ancestors = [],
-				ancestorLength = 0;
-
-			// aB is adminbar. d is document.
-			while ( t && t != aB && t != d ) {
-				if ( 'LI' == t.nodeName.toUpperCase() ) {
-					ancestors[ ancestors.length ] = t;
-					id = getTOID(t);
-					if ( id )
-						clearTimeout( id );
-					t.className = t.className ? ( t.className.replace(hc, '') + ' hover' ) : 'hover';
-					hovering = t;
-				}
-				t = t.parentNode;
-			}
+		if ( userAgent.indexOf( 'applewebkit' ) != -1 && id && id.charAt( 0 ) == '#' ) {
+			setTimeout( function() {
+				var target = document.getElementById( id.replace( '#', '' ) );
+
+				target.setAttribute( 'tabIndex', '0' );
+				target.focus();
+			}, 100 );
+		}
+	}
 
-			// Removes any selected classes.
-			if ( hovering && hovering.parentNode ) {
-				ul = hovering.parentNode;
-				if ( ul && 'UL' == ul.nodeName.toUpperCase() ) {
-					i = ul.childNodes.length;
-					while ( i-- ) {
-						li = ul.childNodes[i];
-						if ( li != hovering )
-							li.className = li.className ? li.className.replace( rselected, '' ) : '';
-					}
-				}
-			}
+	/**
+	 * Toogle hover class for mobile devices.
+	 *
+	 * @since 5.3.0
+	 *
+	 * @param {NodeList} topMenuItems All menu items.
+	 * @param {Event} e The click event.
+	 */
+	function mobileHover( topMenuItems, e ) {
+		var wrapper;
 
-			// Removes the hover class for any objects not in the immediate element's ancestry.
-			i = q.length;
-			while ( i-- ) {
-				inA = false;
-				ancestorLength = ancestors.length;
-				while( ancestorLength-- ) {
-					if ( ancestors[ ancestorLength ] == q[i][1] )
-						inA = true;
-				}
+		if ( !! getClosest( e.target, '.ab-sub-wrapper' ) ) {
+			return;
+		}
 
-				if ( ! inA )
-					q[i][1].className = q[i][1].className ? q[i][1].className.replace(hc, '') : '';
-			}
-		},
+		e.preventDefault();
 
-		/**
-		 * Removes the hoverclass from menu items.
-		 *
-		 * @since 3.1.0
-		 *
-		 * @param {HTMLElement} t The HTML element.
-		 *
-		 * @return {void}
-		 */
-		removeHoverClass = function(t) {
-			while ( t && t != aB && t != d ) {
-				if ( 'LI' == t.nodeName.toUpperCase() ) {
-					(function(t) {
-						var to = setTimeout(function() {
-							t.className = t.className ? t.className.replace(hc, '') : '';
-						}, 500);
-						q[q.length] = [to, t];
-					})(t);
-				}
-				t = t.parentNode;
-			}
-		},
+		wrapper = getClosest( e.target, '.menupop' );
 
-		/**
-		 * Handles the click on the Shortlink link in the adminbar.
-		 *
-		 * @since 3.1.0
-		 *
-		 * @param {Object} e The click event.
-		 *
-		 * @return {boolean} Returns false to prevent default click behavior.
-		 */
-		clickShortlink = function(e) {
-			var i, l, node,
-				t = e.target || e.srcElement;
-
-			// Make t the shortlink menu item, or return.
-			while ( true ) {
-				// Check if we've gone past the shortlink node,
-				// or if the user is clicking on the input.
-				if ( ! t || t == d || t == aB )
-					return;
-				// Check if we've found the shortlink node.
-				if ( t.id && t.id == 'wp-admin-bar-get-shortlink' )
-					break;
-				t = t.parentNode;
-			}
+		if ( ! wrapper ) {
+			return;
+		}
 
-			// IE doesn't support preventDefault, and does support returnValue
-			if ( e.preventDefault )
-				e.preventDefault();
-			e.returnValue = false;
-
-			if ( -1 == t.className.indexOf('selected') )
-				t.className += ' selected';
-
-			for ( i = 0, l = t.childNodes.length; i < l; i++ ) {
-				node = t.childNodes[i];
-				if ( node.className && -1 != node.className.indexOf('shortlink-input') ) {
-					node.focus();
-					node.select();
-					node.onblur = function() {
-						t.className = t.className ? t.className.replace( rselected, '' ) : '';
-					};
-					break;
-				}
-			}
-			return false;
-		},
+		if ( hasHoverClass( wrapper ) ) {
+			removeHoverClass( wrapper );
+		} else {
+			removeAllHoverClass( topMenuItems );
+			addHoverClass( wrapper );
+		}
+	}
 
-		/**
-		 * Scrolls to the top of the page.
-		 *
-		 * @since 3.4.0
-		 *
-		 * @param {HTMLElement} t The HTML element.
-		 *
-		 * @return {void}
-		 */
-		scrollToTop = function(t) {
-			var distance, speed, step, steps, timer, speed_step;
+	/**
+	 * Handles the click on the Shortlink link in the adminbar.
+	 *
+	 * @since 3.1.0
+	 * @since 5.3.0 Use querySelector to clean up the function.
+	 *
+	 * @param {Event} e The click event.
+	 *
+	 * @return {boolean} Returns false to prevent default click behavior.
+	 */
+	function clickShortlink( e ) {
+		var wrapper = e.target.parentNode,
+			input = wrapper.querySelector( '.shortlink-input' );
 
-			// Ensure that the #wpadminbar was the target of the click.
-			if ( t.id != 'wpadminbar' && t.id != 'wp-admin-bar-top-secondary' )
-				return;
-
-			distance    = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
-
-			if ( distance < 1 )
-				return;
-
-			speed_step = distance > 800 ? 130 : 100;
-			speed     = Math.min( 12, Math.round( distance / speed_step ) );
-			step      = distance > 800 ? Math.round( distance / 30  ) : Math.round( distance / 20  );
-			steps     = [];
-			timer     = 0;
-
-			// Animate scrolling to the top of the page by generating steps to
-			// the top of the page and shifting to each step at a set interval.
-			while ( distance ) {
-				distance -= step;
-				if ( distance < 0 )
-					distance = 0;
-				steps.push( distance );
-
-				setTimeout( function() {
-					window.scrollTo( 0, steps.shift() );
-				}, timer * speed );
+		// IE doesn't support preventDefault, and does support returnValue
+		if ( e.preventDefault ) {
+			e.preventDefault();
+		}
+		e.returnValue = false;
 
-				timer++;
-			}
+		wrapper.classList.add( 'selected' );
+		input.focus();
+		input.select();
+		input.onblur = function() {
+			wrapper.classList.remove( 'selected' );
 		};
 
-		addEvent(w, 'load', function() {
-			aB = d.getElementById('wpadminbar');
+		return false;
+	}
+
+	/**
+	 * Clear sessionStorage on logging out.
+	 *
+	 * @since 5.3.0
+	 */
+	function emptySessionStorage() {
+		if ( 'sessionStorage' in window ) {
+			try {
+				for ( var key in sessionStorage ) {
+					if ( key.indexOf( 'wp-autosave-' ) != -1 ) {
+						sessionStorage.removeItem( key );
+					}
+				}
+			} catch ( e ) {}
+		}
+	}
+
+	/**
+	 * Check if menu item has hover class.
+	 *
+	 * @since 5.3.0
+	 *
+	 * @param {HTMLElement} item Menu item Element.
+	 */
+	function hasHoverClass( item ) {
+		return item.classList.contains( 'hover' );
+	}
 
-			if ( d.body && aB ) {
-				d.body.appendChild( aB );
+	/**
+	 * Add hover class for menu item.
+	 *
+	 * @since 5.3.0
+	 *
+	 * @param {HTMLElement} item Menu item Element.
+	 */
+	function addHoverClass( item ) {
+		item.classList.add( 'hover' );
+	}
 
-				if ( aB.className )
-					aB.className = aB.className.replace(/nojs/, '');
+	/**
+	 * Remove hover class for menu item.
+	 *
+	 * @since 5.3.0
+	 *
+	 * @param {HTMLElement} item Menu item Element.
+	 */
+	function removeHoverClass( item ) {
+		item.classList.remove( 'hover' );
+	}
 
-				addEvent(aB, 'mouseover', function(e) {
-					addHoverClass( e.target || e.srcElement );
-				});
-
-				addEvent(aB, 'mouseout', function(e) {
-					removeHoverClass( e.target || e.srcElement );
-				});
-
-				addEvent(aB, 'click', clickShortlink );
-
-				addEvent(aB, 'click', function(e) {
-					scrollToTop( e.target || e.srcElement );
-				});
-
-				addEvent( document.getElementById('wp-admin-bar-logout'), 'click', function() {
-					if ( 'sessionStorage' in window ) {
-						try {
-							for ( var key in sessionStorage ) {
-								if ( key.indexOf('wp-autosave-') != -1 )
-									sessionStorage.removeItem(key);
-							}
-						} catch(e) {}
-					}
-				});
+	/**
+	 * Remove hover class for all menu items.
+	 *
+	 * @since 5.3.0
+	 *
+	 * @param {NodeList} topMenuItems All menu items.
+	 */
+	function removeAllHoverClass( topMenuItems ) {
+		for ( var i = 0; i < topMenuItems.length; i++ ) {
+			if ( hasHoverClass( topMenuItems[i] ) ) {
+				removeHoverClass( topMenuItems[i] );
 			}
+		}
+	}
 
-			if ( w.location.hash )
-				w.scrollBy(0,-32);
+	/**
+	 * Scrolls to the top of the page.
+	 *
+	 * @since 3.4.0
+	 *
+	 * @param {Event} e The Click event.
+	 *
+	 * @return {void}
+	 */
+	function scrollToTop( e ) {
+		document.body.scrollIntoView( {
+			behavior: 'smooth'
+		} );
+	}
 
-			if ( navigator.userAgent && document.body.className.indexOf( 'no-font-face' ) === -1 &&
-				/Android (1.0|1.1|1.5|1.6|2.0|2.1)|Nokia|Opera Mini|w(eb)?OSBrowser|webOS|UCWEB|Windows Phone OS 7|XBLWP7|ZuneWP7|MSIE 7/.test( navigator.userAgent ) ) {
+	/**
+	 * Get closest Element.
+	 *
+	 * @since 5.3.0
+	 *
+	 * @param {HTMLElement} el Element to get parent.
+	 * @param {string} selector CSS selector to match.
+	 */
+	function getClosest( el, selector ) {
+		if ( ! Element.prototype.matches ) {
+			Element.prototype.matches =
+				Element.prototype.matchesSelector ||
+				Element.prototype.mozMatchesSelector ||
+				Element.prototype.msMatchesSelector ||
+				Element.prototype.oMatchesSelector ||
+				Element.prototype.webkitMatchesSelector ||
+				function( s ) {
+					var matches = ( this.document || this.ownerDocument ).querySelectorAll( s ),
+						i = matches.length;
+					while ( --i >= 0 && matches.item( i ) !== this ) { }
+					return i > -1;
+				};
+		}
 
-				document.body.className += ' no-font-face';
+		// Get the closest matching elent
+		for ( ; el && el !== document; el = el.parentNode ) {
+			if ( el.matches( selector ) ) {
+				return el;
 			}
-		});
-	})(document, window);
-
-}
+		}
+		return null;
+	}
+} )( document, window, navigator );
Index: src/js/_enqueues/wp/revisions.js
===================================================================
--- src/js/_enqueues/wp/revisions.js	(revision 46818)
+++ src/js/_enqueues/wp/revisions.js	(working copy)
@@ -946,11 +946,13 @@
 				stop:  this.stop
 			}) );
 
-			this.$el.hoverIntent({
-				over: this.mouseEnter,
-				out: this.mouseLeave,
+			hoverintent(
+				this.$el[0],
+				this.mouseEnter,
+				this.mouseLeave
+			).options( {
 				timeout: 800
-			});
+			} );
 
 			this.applySliderSettings();
 		},
Index: src/wp-includes/script-loader.php
===================================================================
--- src/wp-includes/script-loader.php	(revision 46818)
+++ src/wp-includes/script-loader.php	(working copy)
@@ -976,7 +976,7 @@
 		)
 	);
 
-	$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array( 'jquery', 'hoverIntent', 'utils' ), false, 1 );
+	$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array( 'jquery', 'hoverintent-js', 'utils' ), false, 1 );
 	did_action( 'init' ) && $scripts->localize(
 		'common',
 		'commonL10n',
@@ -1291,7 +1291,7 @@
 
 	$scripts->add( 'wp-backbone', "/wp-includes/js/wp-backbone$suffix.js", array( 'backbone', 'wp-util' ), false, 1 );
 
-	$scripts->add( 'revisions', "/wp-admin/js/revisions$suffix.js", array( 'wp-backbone', 'jquery-ui-slider', 'hoverIntent' ), false, 1 );
+	$scripts->add( 'revisions', "/wp-admin/js/revisions$suffix.js", array( 'wp-backbone', 'jquery-ui-slider', 'hoverintent-js' ), false, 1 );
 
 	$scripts->add( 'imgareaselect', "/wp-includes/js/imgareaselect/jquery.imgareaselect$suffix.js", array( 'jquery' ), false, 1 );
 
@@ -1490,7 +1490,7 @@
 
 	$scripts->add( 'user-suggest', "/wp-admin/js/user-suggest$suffix.js", array( 'jquery-ui-autocomplete' ), false, 1 );
 
-	$scripts->add( 'admin-bar', "/wp-includes/js/admin-bar$suffix.js", array(), false, 1 );
+	$scripts->add( 'admin-bar', "/wp-includes/js/admin-bar$suffix.js", array( 'hoverintent-js' ), false, 1 );
 
 	$scripts->add( 'wplink', "/wp-includes/js/wplink$suffix.js", array( 'jquery', 'wp-a11y' ), false, 1 );
 	did_action( 'init' ) && $scripts->localize(
@@ -1514,6 +1514,9 @@
 	$scripts->add( 'media-upload', "/wp-admin/js/media-upload$suffix.js", array( 'thickbox', 'shortcode' ), false, 1 );
 
 	$scripts->add( 'hoverIntent', "/wp-includes/js/hoverIntent$suffix.js", array( 'jquery' ), '1.8.1', 1 );
+	
+	// JS-only version of hoverintent (no dependencies).
+	$scripts->add( 'hoverintent-js', "/wp-includes/js/hoverintent-js.min.js", array(), '2.2.1', 1 );
 
 	$scripts->add( 'customize-base', "/wp-includes/js/customize-base$suffix.js", array( 'jquery', 'json2', 'underscore' ), false, 1 );
 	$scripts->add( 'customize-loader', "/wp-includes/js/customize-loader$suffix.js", array( 'customize-base' ), false, 1 );
