Hi, sorry if that's necro posting, but mentioned above method is not working anymore (?) or I messed up something. Anyway, this should work, it did job for me
function enqueue_TweenMax() {
if ( ! is_admin() ) {
$scriptsrc = get_template_directory_uri() . '/assets/js/TweenMax.min.js';
wp_register_script( 'TweenMax', $scriptsrc );
wp_enqueue_script( 'TweenMax' );
}
}
add_action( 'wp_enqueue_scripts', 'enqueue_TweenMax' );
Hope this can help someone