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:
Ian Stewart 2014-11-03 18:57:22 +00:00
parent 67871ba641
commit 0788bccc0c
2 changed files with 1 additions and 2 deletions

View File

@ -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>

View File

@ -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>' );