Skip to content

Instantly share code, notes, and snippets.

View jgb-solutions's full-sized avatar
on to something

Jean Gérard Bousiquot jgb-solutions

on to something
View GitHub Profile
@jgb-solutions
jgb-solutions / google-cdn-jquery-wordpress.php
Last active August 29, 2015 14:03 — forked from isGabe/gist:3072378
Loading Google's jQuery in Wordpress With Fallback to Local Copy
<?php
/*
**** Load jQuery from Google CDN if available, local fallback if not ****
** Place in your theme's functions.php or relevant file. Edit local jQuery path if needed.
** Works as-is with WordPress Bones Theme v1.2 https://github.com/eddiemachado/bones (replace wp_enqueue_script( 'jquery' ); on line 142
** reference: http://wp.tutsplus.com/tutorials/load-jquery-from-google-cdn-with-local-fallback-for-wordpress/
*/