I've been reading up on making IE test the code while compiling it.
--------------------------------------------------------------------------------------
Conditional Compilation
Conditional compilation allows the use of new JScript language features without sacrificing compatibility with older versions that do not support the features.

/*@cc_on @*/
/*@if (@_jscript_version >= 4)
   alert("JScript version 4 or better");
   @else @*/
   alert("You need a more recent script engine.");
/*@end @*/

This example uses special comment delimiters that are only used if conditional compilation is activated by the @cc_on statement. Scripting engines that do not support conditional compilation only see the message informing of the need for a new scripting engine.
--------------------------------------------------------------------------------------
@_win32           True if running on a Win32 system.
@_win16           True if running on a Win16 system.
@_mac             True if running on a Apple Macintosh system.
@_jscript_build   Contains the build number of the JScript scripting engine.
@_jscript_version Contains the JScript version number in major.minor format.

would it be worth looking into using this as a method of reducing the amount of code executed by IE and reduce the number of if statements required in the executed methods?

--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010
 

Reply via email to