GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   loading css3 media queries on ie9 and below (https://gfy.com/showthread.php?t=1101663)

fris 03-01-2013 09:19 AM

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


All times are GMT -7. The time now is 06:38 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123