What I did was hide the menu until the DOM is loaded then show the
menu again.

On Jul 29, 7:39 pm, Pablo <gom...@gmail.com> wrote:
> Hi Guys,
>
> I'm using the treeview jQuery plugin (http://bassistance.de/jquery-
> plugins/jquery-plugin-treeview/) to display the sitemap for a site.
>
> My customer wants to see the tree collapsed on the page load and the
> user should expand it as he sees fit. So, I've setup it like that:
>
> jQuery(function($) {
>     $(".sitePlan>ul").treeview({
>         collapsed: true,
>         unique: true,
>         control: true,
>         persist: location
>     });
>
> });
>
> The problem is that in IE (6, 7 and 8) the user will see first the
> treeview completely expanded and then it will collapse at the end of
> the page load.
> Is there a way to avoid that, thus showing only the collapsed tree
> from the start? Or to make it invisible until the moment it is
> collapsed?

Reply via email to