Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   Speeding up the load of the main menu JS (http://forum.bytesforall.com/showthread.php?t=23473)

flyboy Apr 29, 2016 06:06 PM

Speeding up the load of the main menu JS
 
Is there a way to get the main menu JS to load a bit sooner?

The site I just built has quite a few child and grandchild items it its menu, so the menu loads fully expanded for a fraction of a sec before JS loads and collapses it. (screenshot)

Normally not a biggie, except we are also using links to anchors (anchors halfway down the page in some cases). That scrolls the user to the location of the anchor before the menu collapses - so, as the menu then collapses and page becomes shorter, a second later the desired content slides offscreen.

It took me a while to realize those two problems are related, but now that I do - is there a way to force the main menu JS to load early, and only the first time the user lands on a site?

juggledad Apr 30, 2016 04:34 AM

I've never dug into the code that deep so I have no answer for you.


All times are GMT -6. The time now is 11:09 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.