Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Speeding up the load of the main menu JS


  #1  
Old Apr 29, 2016, 07:06 PM
flyboy's Avatar
flyboy
 
115 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, 05:34 AM
juggledad's Avatar
juggledad
 
23,765 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



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 02:57 PM
Speeding up fading in the old rotating header code cfibanez Header configuration & styling 2 Aug 6, 2010 12:11 PM


All times are GMT -6. The time now is 11:40 PM.


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