if ( !function_exists( 'responsive_js' ) ) {
function responsive_js() {
$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
$directory = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? 'js-dev' : 'js';
$template_directory_uri = get_template_directory_uri();
// JS at the bottom for fast page loading.
// except for Modernizr which enables HTML5 elements & feature detects.
wp_enqueue_script( 'modernizr', $template_directory_uri . '/core/' . $directory . '/responsive-modernizr' . $suffix . '.js', array( 'jquery' ), '2.6.1', false );
wp_enqueue_script( 'responsive-scripts', $template_directory_uri . '/core/' . $directory . '/responsive-scripts' . $suffix . '.js', array( 'jquery' ), '1.2.6', true );
if ( !wp_script_is( 'tribe-placeholder' ) ) {
wp_enqueue_script( 'jquery-placeholder', $template_directory_uri . '/core/' . $directory . '/jquery.placeholder' . $suffix . '.js', array( 'jquery' ), '2.0.7', true );
}
}
}
add_action( 'wp_enqueue_scripts', 'responsive_js' );