Categories
Google

Google Hosted jQuery or Other Scripts not working – Google CDN Down

Today we’ve had a flood of errors with customer websites where google hosted jquery and other scripts from loading.

On most PC’s trying to access the Google Content Delivery Network (CDN) will give you a 404 error of the file not found!

If like me you have used Google’s DNS you might be confused because everything is working fine, however it seems OpenDNS has stopped access to the Google Datacenters due to a phishing scam??!?

Seriously? Good way to break half the internet guys!

OpenDNS Credit goes to:
https://twitter.com/#!/matbennett/status/154492602559897600/photo/1

Seems like I would suggest using a fallback script to local, this will then be bulletproof!

This sort of thing would work:


Or if you're using MooTools using Google Hoosted / CDN Try this:


Categories
Wordpress Wordpress Plugins Wordpress Themes Wordpress Web Design

Remove WordPress Bundled / Included jQuery

Recently, from version 3 and onwards WordPress has included or bundled a load of javascript with it, this is found in:  wp-includes/js/

This list includes scripts such as

  • jQuery
  • scriptaculous
  • hoverIntent
  • prototype
  • colorpicker
  • json
  • swfobject

and more.

Unfortunately WordPress is forcing everyone to use jQuery version 1.4.2 with abit of a ignorant attitude, quote one forum moderator:

WordPress 3.0 will include 1.4.2, de-registering and adding your own is just totally pointless(seeing as that’s current).

Not quite, since some people need to use a pre 1.4.2 version.

Anyway to cut a long story short, here’s the Fix to Removing the Bundled jQuery that comes with WordPress:

Edit you’re themes functions.php

goto the end of the document and find ?>

before that paste:

if( !is_admin()){
wp_deregister_script('jquery');
}

Save, and upload.

And that’s it, you’re done.

Seems to have not hurt anything in the admin backend, but if you encounter any bugs or issues please let me know!

Also you can try this:
if( !is_admin()){
wp_deregister_script('jquery');
wp_register_script('jquery', (""), false, '');
wp_enqueue_script('jquery');
}

Wootheme Users

Open your functions.php file, find:

/*-----------------------------------------------------------------------------------*/
/* You can add custom functions below */
/*-----------------------------------------------------------------------------------*/

And paste:

if( !is_admin()){
wp_deregister_script('jquery');
wp_register_script('jquery', (""), false, '');
wp_enqueue_script('jquery');
}

Below it 🙂

Categories
Cool Stuff jQuery Website Design

10 Sweet Must Have jQuery Plugins

jquery10On the search for new ways to make the web accessible we’ll go through a list of plugins that can acheive just about anything and be totally be cross browser, cross platform, mobile platform compatible.

1, CrossSlide, Flash Type Image Animation, essential.
http://www.gruppo4.com/~tobia/cross-slide.shtml

2, Autocomplete, Perfect for Lengthy Forms.
http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/

3, Post Slider for WordPress.
http://www.prodeveloper.org/j-post-slider-wordpress-plugin-jquery-post-animation-show.html

4, Corner, for Rounded etc corners.
http://methvin.com/jquery/jq-corner.html

5, Lavalamp, for sexy hovers.
http://www.gmarwaha.com/blog/2007/08/23/lavalamp-for-jquery-lovers/

6, QuickSearch.
http://rikrikrik.com/jquery/quicksearch/

7, Coda Popup Bubbles.
http://jqueryfordesigners.com/coda-popup-bubbles/

8, jQzoom, Image Zoom – Pro for eCommerce Solutions and Products.
http://www.mind-projects.it/projects/jqzoom/

9, IconDock, Like the Mac OS bar / RocketDock bar.
http://icon.cat/software/iconDock/

10, Image Fade Revisted, handy image fade for some navigations.
http://jqueryfordesigners.com/image-fade-revisited/

And finally as a bonus, a completely different subject but a WordPress Plugin that Prompts Users to Upgrade to a Newer browser if they’re in IE6
http://wordpress.org/extend/plugins/shockingly-big-ie6-warning/