[wp-hackers] Overriding Default jQuery Script Generation?

Dan Gayle dangayle at gmail.com
Thu Feb 5 20:46:55 GMT 2009


On Feb 5, 2009, at 12:39 PM, Austin Matzko wrote:

> On Thu, Feb 5, 2009 at 2:32 PM, Mike Schinkel
> <mikeschinkel at newclarity.net> wrote:
>> Anyone know how do disable the default jQuery script generation so  
>> it will use the Google AJAX one? Thanks in advance.
>
>
> wp_deregister_script('jquery');
> wp_enqueue_script('jquery',"http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js 
> ",array(),'1.2.6');
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

How would a person make a fallback, in case *crosses fingers* Google's  
jQuery is unavailable?


More information about the wp-hackers mailing list