Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

Speeding up the load of the main menu JS


  #1  
Old Apr 29, 2016, 06:06 PM
flyboy's Avatar
flyboy
 
114 posts · Sep 2010
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?
  #2  
Old Apr 30, 2016, 04:34 AM
juggledad's Avatar
juggledad
 
23,511 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I've never dug into the code that deep so I have no answer for you.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
main menu

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to have catergory drop down list in page menu bar (the main menu) mumsbabymagazine Page & Category Menu Bars 3 Dec 31, 2010 01:57 PM
Speeding up fading in the old rotating header code cfibanez Header configuration & styling 2 Aug 6, 2010 11:11 AM


All times are GMT -6. The time now is 07:16 PM.


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