+1-888-365-2779
Try Now
More in this section

Forums / Designing with Sitefinity / Lean site: How to disable Sitemenu Js or create basic list menu?

Lean site: How to disable Sitemenu Js or create basic list menu?

2 posts, 0 answered
  1. Herdy Handoko
    Herdy Handoko avatar
    3 posts
    Registered:
    10 Sep 2009
    11 Apr 2010
    Link to this post
    Hi Telerik,

    I want my website to run as "lean" as possible. i.e. only a handful of scripts, optimised images, minified scripts + css.

    I'm currently using the Sitemenu controls, and while I can turn off the embedded CSS, I don't know how to turn off the scripts. The sitemenu controls includes 500kb script (100kb GZipped). With the kind of traffic I'm expecting, I'm wasting GBs each month for something I don't really need.

    Is there a way to disable the loading of embedded Sitemenu Js? Or, as an alternative... How do I create basic list menu? For example:

    <ul>
        <li class="selected">Homepage</li>
        ...
        <li>About Us</li>
        <li>Contact Us</li>
    </ul>

    Kind Regards,
    Herdy.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Apr 2010
    Link to this post
    Hi Herdy Handoko,

    If you disable the scripts the RadMenu control will stop working properly. There is a way to do it and you can gather more information at Disabling embedded resources. I suggest that you should use the CDN support

    You could create your own menu control by building the html elements based on the SiteMap structure. You could use standard ASP.NET classes as SiteMapNode, SiteMapNodeCollection etc. You could also use ASP.NET Menu Control bound the the SiteMapDataSource.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
2 posts, 0 answered