When the page loads and waits for images/JS scripts to load, I see a hierarchical bulleted list briefly, then it disappears when the menu bar script runs to format the menus correctly. Can I apply an HTML attribute to each item or to the menu to hide initially to handle this? Some users have made comments about it.
Thanks.
4 Answers, 1 is accepted
Have you registered the required CSS files in the <head /> tag of our application? If yes this problem should not be occurring as the browser downloads the CSS files in the <head /> tag before displaying the rest of the document. Also the menu appearance is not initialized or tweaked with JavaScript code - it relies on CSS only.
Is there any live url where we can observe this behavior?
Regards,Atanas Korchev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
I use the Stylesheet registrar to register the CSS file; it's at the bottom of the master page. Isn't it recommended to have this at the bottom, so that each component can register itself with these registrars? Or is there an alternative approach?
Thanks.
It is the ScriptRegistrar that should be put at the bottom of the page. This is mandatory so components can register with it. Unfortunately the case with StyleSheetRegistrar is a different story. All <link /> tags must be placed in the <head /> tag for XHTML compliance. This is also required to avoid issues as seeing unstyled content until all CSS files are downloaded and applied. That's why the StyleSheetRegistrar should be put in the <head /> of the page - valid HTML and the browser will download the CSS files first. This however requires the user to manually register all CSS files required by the UI components. Since the StyleSheetRegistrar appears first in the page it is rendered first as well - there is no way for the components to register with the StyleSheetRegistrar.
I hope this helps,
Atanas Korchev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
That does make sense.
Thanks.