I have an asp page that I am working on in which the menu has some links that are only visible to certain users (currently based on a session variable). I'm curious though how to improve the loading time as it seems a bit slow. One solution I thought might come from structuring my navigation differently. Currently, I have something like this:
That happens about 8-10 times as the different sections of the menu each have items appearing for different sets of users. Is this where my lag is coming from, and is there a better method handling such a problem?
Code:
<li>item</li>
<%
if (Session("Variable ") <> "") then
%>
<!-- Logged in users only -->
<li>item</li>
<% end if %>
That happens about 8-10 times as the different sections of the menu each have items appearing for different sets of users. Is this where my lag is coming from, and is there a better method handling such a problem?