Results 1 to 2 of 2

Thread: slow loading time of ddlevelmenu

  1. #1
    Join Date
    Apr 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default slow loading time of ddlevelmenu

    Hi, i am trying your menu ddlelvemenu, but it seems to look slow in loading, the whole menu loads after the whole page load, i placed the javascript at the top of the page, and try all permutations and combination, looking for good technical reply
    thanks

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.

    Yep, the menu is initialized after the page has fully loaded, which if your page contains a lot of graphics/text may appear slow. You can have the menu initialized sooner, by changing the initialization code on your page:

    Code:
    <script type="text/javascript">
    ddlevelsmenu.setup("ddtopmenubar", "topbar") //ddlevelsmenu.setup("mainmenuid", "topbar|sidebar")
    </script>
    Move it from the head of your page to the very bottom of the document, and slightly modified:

    Code:
    <script type="text/javascript">
    ddlevelsmenu.init("ddtopmenubar", "topbar") //ddlevelsmenu.init("mainmenuid", "topbar|sidebar")
    </script>
    DD Admin

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
  •