SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist Redd's Avatar
    Join Date
    Jan 2003
    Posts
    422
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    menu last thing to load, causing problems

    I just redesigned my website and included a dhtml menu found at http://www.dynamicdrive.com/dynamici...menu/index.htm

    I chose that menu because it seemed to be compatible with just about every browser, and it's easy to use.

    I've noticed that the menu is the very last thing to load on a page. My pages are low in graphics, but I have 2 or 3 banners on them from various ad servers. The menu won't load until all ads have loaded, and sometimes the ad servers (burst, TF, etc) are slow. If an ad doesn't appear at all, then the menu just sits and doesn't always load either.

    I hope this makes sense.


    How can I get the menu to go ahead and load without waiting for the ad banners?

    Is this typical of all menus of this type?


    thanks!

  2. #2
    SitePoint Wizard silver trophy Crazybanana's Avatar
    Join Date
    Mar 2003
    Location
    In tha fruit cellar
    Posts
    1,379
    Mentioned
    32 Post(s)
    Tagged
    1 Thread(s)
    maybe we can have a link so we can see how it works..
    Who's to doom when the judge himself is dragged before the bar


  3. #3
    ♪♪ ♪ ♪ ♪ ♪♪ ♪ ♪♪ Markdidj's Avatar
    Join Date
    Sep 2002
    Location
    Bournemouth, South UK
    Posts
    1,551
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    put the menu in the first part of your script, preferably in an external JS as this will get cached. Once you go to the site and cache the external JS it will load instaneously for consecutive pages
    LiveScript: Putting the "Live" Back into JavaScript
    if live output_as_javascript else output_as_html end if


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •