Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

  • Profile photo of Micheal Kennedy
    Micheal Kennedy
    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)
  • Profile photo of Micheal Kennedy
    Micheal Kennedy
    Participant

    @intermike

    That smiley isn’t suppose to be there. LOL

    Profile photo of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    Don’t know. Try it.

    Profile photo 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!

    Profile photo of thandprunkahscab
    Anonymous

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

    Profile photo of thetecahost
    Anonymous

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Would “wp_register_script’ing” jQuery via Google’s hosted version, hurt anything?’ is closed to new replies.
Skip to toolbar