Permalink
Browse files

Hide the site menu and make it visible after the page has loaded, to …

…minimize menu flicker
  • Loading branch information...
1 parent 5e9bbbe commit abad4aae3329a9ee629366b683b1127e23977cb1 @bharat bharat committed Nov 21, 2009
Showing with 5 additions and 1 deletion.
  1. +5 −1 themes/wind/views/page.html.php
@@ -86,9 +86,13 @@
<? endif ?>
<?= $theme->user_menu() ?>
<?= $theme->header_top() ?>
- <div id="g-site-menu">
+
+ <!-- hide the menu and make it visible after the page has loaded, to minimize menu flicker -->
+ <div id="g-site-menu" style="visibility: visible">
<?= $theme->site_menu() ?>
</div>
+ <script> $(document).ready(function() { $("#g-site-menu").css("visibility", "visible"); }) </script>
+
<?= $theme->header_bottom() ?>
</div>

0 comments on commit abad4aa

Please sign in to comment.