V
vunet
I am investigating positive and negative sides of using conditional
comments:
<!--[if IE 6]>
@import url(/ie6.css);
<![endif]-->
My goal is to learn if JavaScript may handle it better or worse when
parsing the page. For example, is it fine to write what's above as:
if(ie6==true){ document.write "<style type='text/css'>@import url(/
ie6.css);</style>"; }
//ignore syntax if errors are there, you get the idea
Please let me hear some thoughts and feedback. Thank you.
comments:
<!--[if IE 6]>
@import url(/ie6.css);
<![endif]-->
My goal is to learn if JavaScript may handle it better or worse when
parsing the page. For example, is it fine to write what's above as:
if(ie6==true){ document.write "<style type='text/css'>@import url(/
ie6.css);</style>"; }
//ignore syntax if errors are there, you get the idea
Please let me hear some thoughts and feedback. Thank you.