• CDN jQuery in WordPress – the right way

    Something i’ve struggled with in the past is how to load a CDN version of jQuery into WordPress, but ensure that it’s the same version that comes loaded with the WordPress core. That way when you update WP or plugins, things won’t break because you’re loading an older version on jQuery. So this is what I came up with, it includes a fallback that calls the bundled WP jQuery if the CDN isn’t available: function jquery_cdn(){ if( !is_admin() ) { // Get the WP built-in… more