Page 1 of 1

conditional statements

PostPosted: Sat Apr 09, 2011 2:51 pm
by mapleleaf

We all use conditional statements in our coding of web pages; it is a necessary evil as ideally not having them is the better.

Ideally one doesn't want to use conditional statements as they do affect the overall performance of a web site and/or page.

In designing web pages, one should also consider the optimization factor prior to launching it.

Conditional statements are a necessary evil so; so how can we improve the affect that conditional statements have.

In your code at the top in your head element, you may want to include the following that is right after the opening head element

<!ā€“[if IE]><![endif]ā€“>

For more info, here is something worthwhile reading and noting.

http://webforscher.wordpress.com/2010/0 ... down-ie-8/