PhotoDune

Google API is down?!

2149 posts
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Exclusive Author
  • Germany
  • Has been a member for 3-4 years
  • Interviewed on the Envato Notes blog
+4 more
crozer says

This is crazy, the whole Google API is down: http://ajax.googleapis.com

Imagine how many WP themes are now broken because of this? Already received several support questions concerning this.

Anyhow, anybody knows why this might be happening?

Moral: enqueue and pull your jQuery form WP or a local file, not Google ;)

2935 posts
  • Community Superstar
  • Sold between 1 000 and 5 000 dollars
  • Bought between 10 and 49 items
  • Has been a member for 2-3 years
  • United States
  • Exclusive Author
chrisakelley says

This is crazy, the whole Google API is down: http://ajax.googleapis.com

Imagine how many WP themes are now broken because of this? Already received several support question concerning this.

Anyhow, anybody knows why this might be happening?

Moral: enqueue and pull your jQuery form WP or a local file, not Google ;)

working fine, try https :)

ProgressionStudios
ProgressionStudios Recent Posts
Threads Started
215 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • United States
  • Microlancer Beta Tester
+3 more
ProgressionStudios says
2149 posts
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Exclusive Author
  • Germany
  • Has been a member for 3-4 years
  • Interviewed on the Envato Notes blog
+4 more
crozer says


This is crazy, the whole Google API is down: http://ajax.googleapis.com

Imagine how many WP themes are now broken because of this? Already received several support question concerning this.

Anyhow, anybody knows why this might be happening?

Moral: enqueue and pull your jQuery form WP or a local file, not Google ;)
working fine, try https :)

Strange, this doesn’t work:

wp_deregister_script('jquery'); //deregister current jquery wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js', false, '1.5', false); //load jquery from google api, and place in footer wp_enqueue_script('jquery');

OK so this works: (strange i’m seeing this issue now) wp_deregister_script('jquery'); //deregister current jquery wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js', false, '1.5.1', false); //load jquery from google api, and place in footer wp_enqueue_script('jquery');

2935 posts
  • Community Superstar
  • Sold between 1 000 and 5 000 dollars
  • Bought between 10 and 49 items
  • Has been a member for 2-3 years
  • United States
  • Exclusive Author
chrisakelley says



This is crazy, the whole Google API is down: http://ajax.googleapis.com

Imagine how many WP themes are now broken because of this? Already received several support question concerning this.

Anyhow, anybody knows why this might be happening?

Moral: enqueue and pull your jQuery form WP or a local file, not Google ;)
working fine, try https :)

Strange, this doesn’t work:

wp_deregister_script('jquery'); //deregister current jquery wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js', false, '1.5', false); //load jquery from google api, and place in footer wp_enqueue_script('jquery');

the url is wrong, add this to your functions.php

function crozer_load_scripts() {
      //prevents loading scripts in admin
    if ( is_admin() )
        return;

    //Loads Script only if not admin
    if (!is_admin()) {
     wp_deregister_script( 'jquery' );
     wp_register_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js', false, '1.5.1', true);
     wp_enqueue_script( 'jquery' );

    }

}    
add_action('wp_print_scripts', 'crozer_load_scripts');
by
by
by
by
by