View Single Post
Old 03-01-2013, 09:19 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,481
loading css3 media queries on ie9 and below

css3media queries js library is used for on ie9 or below, anyone know if I load it for all ie, it will interfere with ie10.

normally i would do something like this in wordpress

Code:
wp_enqueue_style( 'customcss', get_template_directory_uri() . "/css/ie9.css");
$wp_styles->add_data( 'customcss', 'conditional', 'lt IE 9' );
which adds:

Code:
<!--[if lt IE 9]> ... <![endif]-->
but unfortunately its only availble for styles.

so im using the global is_IE, so it loads on all ie's.

Code:
global $is_IE;
	if ($is_IE) {
		wp_enqueue_script('css3_mediaqueries', 'http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js');
	}
would like input on the issue loading on all ie's
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


My Cam Feeds Script
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote