Tag Info

New answers tagged

0

I came up with two wrapper functions: function wp_enqueue_cdn_script( $handle, $src_cdn = false, $src_local = false, $deps = array(), $ver = false, $in_footer = false ) { $cdnIsUp = get_transient( $handle . '_script_cdn_is_up' ); if ( $cdnIsUp ) { wp_enqueue_script( $handle, $src_cdn, $deps, $ver, $in_footer ); } else { ...



Top 50 recent answers are included