- the first is defined on the master page and filling some dropdowns in the left navigation bar
- the 2nd is defined on the page layout and creates a submenu in the main ContentPlaceHolder
Sometimes the first script is not executed and the dropdowns are not filled. Updating the page by Ctrl-F5 changes this behaviour sometimes. But reentering the page with a new browser instance shows the misbehaviour again.
Maybe the client context of the two scripts are influencing each other? Any advice how to resolve this?
Setting a jquery timeout is a workaround but is it a good one?