Hey There,
I was thinking about my website menu today. It is a JavaScript menu and I know the majority of users have JavaScript enabled with their browsers. So here are a few questions for discussion.
-
To take into consideration the very small number of users that have JavaScript disabled, many developers use noscript tags. For a JavaScript menu, it may be nice to have at least the top menus within the noscript tag. However, this may bloat the webpages a bit. Would using an IFrame within the noscript tag improve performance overall? I think for JavaScript enabled users, this may be beneficial as the pages would be less bloated with material they do not need. However, for users who have JavaScript disabled, the IFrame creates an extra resource to look up. What are your thoughts on this?
-
I know my Zapatec Menu has JavaScript libraries that create the HTML necessary to display the menu. If I look in firebug I can see the HTML that is generated. If I copy and pasted all of the generated code in place of the JavaScript code that generates this code, what would be the effect? I can see the pages getting a lot more bloated, which would lead to more time to download the main document. The CPU time on the users computer would be smaller.
-
Let’s say a user has a menu that has only a top level. This does not have to be a menu - anything in general that has the same code over and over again. Would it be beneficial to place all of this code in an Iframe that can be cached? If a menu is within an IFrame, I do not think it would work if it has drop down menus. I think the drop down menus would be cut off at the bottom of the IFrame. I do not think a z-index would help in this case.
-
Is there anyway you can cache part of a page instead of the entire page? I was reading an adobe article on coldfusion 9 and it was saying that coldfusion 9 is able to cache the processing for part of a page:
http://openflash.org/devnet/coldfusion/articles/coldfusion9_caching.html
It would be nice if there was a way you could cache part of the page that gets sent to the user. I suppose this is what IFrames are for or is there another way?
Sincerely,
Travis Walters