User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 361,911 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,599 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 1211 | Replies: 5
Reply
Join Date: Sep 2004
Posts: 44
Reputation: #tbone is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
#tbone #tbone is offline Offline
Light Poster

Question Load Suckerfish Menu First?

  #1  
Sep 28th, 2006
I have used this suckerfish menu found here for one of my websites.

I have made some changes and things to it, but for some reason when I use it on my site, it will not "open" until the entire webpage has been downloaded to the user's computer.

Is there anyway to have the menu loaded first so that it will work without having the site downloaded?

Thanks for any help you guys can give me.


Dallas Stars Rule!!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Load Suckerfish Menu First?

  #2  
Sep 29th, 2006
That's completely typical. I really wouldn't worry about it all. Users, as a group, are used to the way the web works and understand they have to wait for a page to load before it can be fully functional.

What I'd be more concerned about is, why is your page taking so long to load?
Reply With Quote  
Join Date: Jun 2004
Location: Hemet, CA
Posts: 427
Reputation: FC Jamison is on a distinguished road 
Rep Power: 5
Solved Threads: 17
Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Re: Load Suckerfish Menu First?

  #3  
Oct 7th, 2006
Hmm...I have never noticed this problem...but I have high speed DSL. Are you sure there is not an onload function floating aruond in there somewhere that tells the browser to wait until the page is loaded to process the menu script?
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Load Suckerfish Menu First?

  #4  
Oct 7th, 2006
Before scripts can work as expected, the page and the underlying DOM have to load. There is an "load" event, of course, which can be tied to the page, typically in the body element with the "onload" event handler.

Another technique is to relocate your scripts from the head section to just before the closing body tag.
Reply With Quote  
Join Date: Jun 2004
Location: Hemet, CA
Posts: 427
Reputation: FC Jamison is on a distinguished road 
Rep Power: 5
Solved Threads: 17
Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Re: Load Suckerfish Menu First?

  #5  
Oct 7th, 2006
Sometimes that onload is snuck into the .js file (I do this a lot).
Reply With Quote  
Join Date: Sep 2004
Posts: 44
Reputation: #tbone is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
#tbone #tbone is offline Offline
Light Poster

Re: Load Suckerfish Menu First?

  #6  
Oct 9th, 2006
hmm... it did not have one originally. I till try to put one in and see. Thanks for the tips.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb HTML and CSS Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 9:47 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC