mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Faster hide-if-no-js, if-js-closed, etc. needed when loading scripts in the footer.
git-svn-id: https://develop.svn.wordpress.org/trunk@10258 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -72,7 +72,16 @@ do_action('admin_print_scripts');
|
||||
do_action("admin_head-$hook_suffix");
|
||||
do_action('admin_head');
|
||||
|
||||
if ( $is_iphone ) { ?>
|
||||
wp_print_styles('no-js');
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
(function(){
|
||||
var nojs = document.getElementById('no-js');
|
||||
nojs.parentNode.removeChild(nojs);
|
||||
})();
|
||||
</script>
|
||||
|
||||
<?php if ( $is_iphone ) { ?>
|
||||
<style type="text/css">.row-actions{visibility:visible;}</style>
|
||||
<?php } ?>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user