Call (877) SITE-OPT (748-3678)

Code: Conditional Comments

Chapter 8 - Ajax Optimization

You also need to be aware of the conditional commenting system of Internet Explorer often used with script includes or CSS. For example, a conditional comment-aware browser will read the following statement and will then include the patch.js file if it is an older Explorer version but not a newer version:

<!--[if lt IE 7]><script src="patch.js" type="text/javascript"></script><![endif]-->

Browsers that do not understand such a comment extension will, of course, safely ignore the statement.

Copyright © 2002-2018 Website Optimization, LLC. All Rights Reserved - Free website speed test - Privacy Policy
Last modified: February 19, 2009.

Follow us on: Twitter, Google+, Facebook, Linked In