javascript - jQuery mega menu showing some blocks on slow connection. how to fix it? -
i using mega menu on this. [due security , backlinks delete link - in case if 1 needs link pm me]
i using mega menu navigation.
only following script using this.
and placed mega menu jquery script before </body>
tag
<script type="text/javascript"> $(function(){ $('#mega-menu-3').dcmegamenu({ rowitems: '2', speed: 'fast', effect: 'fade' }); }); </script>
but block displayed @ navigation area till page or js files load guess.
i see odd blocks on slow connections.
how can fix guys?
css:
#mega-menu-3 { display: none; }
js:
$(window).load(function(){ $('#mega-menu-3').show(); });
if doesn't work, try (and ignore css suggested above):
$(document).ready(function(){ $('#mega-menu-3').hide(); }); $(window).load(function(){ $('#mega-menu-3').show(); });
now show when page loaded. hope helps. :)
Comments
Post a Comment