mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Twenty Fifteen: prevent a flash of visible sub menus before scripts load.
Props mattwiebe, aferica, fixes #30056. git-svn-id: https://develop.svn.wordpress.org/trunk@30211 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
<!--[if lt IE 9]>
|
||||
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
|
||||
<![endif]-->
|
||||
<script>(function(){document.documentElement.className='js'})();</script>
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
|
||||
|
||||
@@ -8,8 +8,6 @@
|
||||
( function( $ ) {
|
||||
var $body, $window, sidebar, toolbarOffset;
|
||||
|
||||
$( 'html' ).removeClass( 'no-js' );
|
||||
|
||||
// Add dropdown toggle that display child menu items.
|
||||
$( '.main-navigation .page_item_has_children > a, .main-navigation .menu-item-has-children > a' ).after( '<button class="dropdown-toggle" aria-expanded="false">' + screenReaderText.expand + '</button>' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user