summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-11-20 20:22:08 -0800
committerBharat Mediratta <bharat@menalto.com>2009-11-20 20:22:08 -0800
commitabad4aae3329a9ee629366b683b1127e23977cb1 (patch)
treef67075f89be3b9145a921b055a611a5952374de2 /themes
parent5e9bbbe490e40da103e0a7960312ab1c814dafa3 (diff)
Hide the site menu and make it visible after the page has loaded, to minimize menu flicker
Diffstat (limited to 'themes')
-rw-r--r--themes/wind/views/page.html.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/themes/wind/views/page.html.php b/themes/wind/views/page.html.php
index 03d43918..f5ae4aca 100644
--- a/themes/wind/views/page.html.php
+++ b/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>