Is there any reason this wouldn’t work?
add_action ( 'wp_enqueue_scripts', 'dtrou_youtube_api' );
function dtrou_youtube_api() {
wp_register_script( 'dtrou-youtube', get_template_directory_uri() . '/js/youtube_js.js', array('jquery'), '', true );
wp_register_script( 'youtube-subscribe-btn', 'https://apis.google.com/js/plusone.js', array(), '', true );
wp_register_script( 'youtube-subscribe-featured', 'https://gdata.youtube.com/feeds/users/droptroucomedy/uploads?alt=json-in-script&callback=vidinfolist&max-results=1', array(), '', true );
wp_register_script( 'youtube-subscribe-videos', 'https://gdata.youtube.com/feeds/users/droptroucomedy/uploads?alt=json-in-script&callback=vidinfolist&max-results=100', array(), '', true );
if ( is_page_template('t-featured.php') ) {
wp_enqueue_script('dtrou-youtube');
wp_enqueue_script('youtube-subscribe-featured');
wp_enqueue_script('youtube-subscribe-btn');
}
if ( is_page_template('t-videos.php') ) {
wp_enqueue_script('dtrou-youtube');
wp_enqueue_script('youtube-subscribe-videos');
wp_enqueue_script('youtube-subscribe-btn');
}
}