I’m sure you’re all aware of loading files like jquery off google. I’m trying to load a file similarly, but I want to have a backup of that file on my server incase the online version is down, and I don’t know how to go about that in WordPress.
Here’s what I have currently which loads it from the url
wp_deregister_script('html5shiv');
wp_register_script('html5shiv', ("http://html5shim.googlecode.com/svn/trunk/html5.js"),false);
wp_enqueue_script('html5shiv');
I think this is what you are looking for.
C&P in case someone came back later looking for this and the site is unavailable:
I’m not familiar with the WordPress queuing system, but here is some general code for javascript with fallback. You may want to post this question at http://wordpress.stackexchange.com where WP api questions tend to get better answers. Here is a fallback mechanism