Skip to:
Content
Pages
Categories
Search
Top
Bottom

Would “wp_register_script’ing” jQuery via Google’s hosted version, hurt anything?

  • Avatar of InterMike
    InterMike
    Participant

    @intermike

    Would this have any consequences, particularly with BuddyPress?

    `wp_deregister_script(‘jquery’);
    wp_register_script(‘jquery’, ‘http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js’);
    wp_enqueue_script(‘jquery’);
    `

Viewing 5 replies - 1 through 5 (of 5 total)
  • Avatar of InterMike
    InterMike
    Participant

    @intermike

    That smiley isn’t suppose to be there. LOL

    Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    Don’t know. Try it.

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    It could. WordPress’ bundled version of jQuery adds an extra line so jQuery runs in noConflict mode by default.

    Some plugins that use jQuery could break. Like Paul mentioned, try it and see!

    Failure does not mean I don’t have it; It does mean I have something to do in a different way!

    It does not matter how slowly you go so long as you do not stop

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.