MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
NoScript and IFrames
Current time: 08-15-2020, 06:59 AM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NoScript and IFrames
06-28-2010, 07:11 AM
Post: #1
NoScript and IFrames
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.

1. 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?

2. 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.

3. 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.

4. 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:

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?

Travis Walters
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
NoScript and IFrames - - 06-28-2010 07:11 AM
RE: NoScript and IFrames - - 06-29-2010, 07:30 AM
RE: NoScript and IFrames - sajal - 06-30-2010, 06:51 AM
RE: NoScript and IFrames - jarrod1937 - 06-30-2010, 10:33 AM
RE: NoScript and IFrames - - 06-30-2010, 01:37 PM

Forum Jump:

User(s) browsing this thread: 1 Guest(s)