Conditionally Enqueue Script for IE browsers less than IE 9
<?php
function ccd_enqueue_lt_ie9() {
global $is_IE;
if ( ! $is_IE ) return;
if ( ! function_exists( 'wp_check_browser_version' ) )
include_once( ABSPATH . 'wp-admin/includes/dashboard.php' );
$response = wp_check_browser_version();
if ( 0 > version_compare( intval( $response['version'] ) , 9 ) )
wp_enqueue_script( 'wps-html5shiv', 'http://html5shim.googlecode.com/svn/trunk/html5.js', array(), 'pre3.6', false );
}
add_action( 'wp_enqueue_scripts', 'ccd_enqueue_lt_ie9' );
?>
WordPress Snippet