WordPress.org

Ready to get started?Download WordPress

Forums

Nivo Slider for WordPress
Works,but loading jQuery 1.5.1 from Google CDN.Can it use the na (8 posts)

  1. fernando_ccs17
    Member
    Posted 1 year ago #

    The question is on the title.

    Since it loads from Google CDN, the page will be heavier.
    It works with the native WordPress version?

    http://wordpress.org/extend/plugins/nivo-slider-for-wordpress/

  2. Matthew Gedeon
    Member
    Posted 1 year ago #

    The plugin could be modified to use the wordpress version...but it is actually faster to load from google cdn because the js file is already cached in many of your users browser, so it doesn't have to be re-downloaded, and, because it uses a CDN it downloads more quickly than if it were to be downloaded from your site.

  3. fernando_ccs17
    Member
    Posted 1 year ago #

    Yes... but... that isn't the point.

    Can I remove the line 32 from nivoslider4wp-show.php AND configure wordpress to load the latest jQuery from Google CDN?

    Thanks!

  4. Matthew Gedeon
    Member
    Posted 1 year ago #

    Modifying line 32 should do just that. You need to replace the whole line with this
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    What you will still need to check for is that no other plugins are loading Jquery as well. If they don't load it correctly then you could have two copies of the same thing running.

  5. fernando_ccs17
    Member
    Posted 1 year ago #

    What you will still need to check for is that no other plugins are loading Jquery as well. If they don't load it correctly then you could have two copies of the same thing running.

    Exactly! This is what is happening.
    WP is loading 1.7.2 locally and Nivo is loading 1.5.1 from Google, simultaneously.

    I have removed line 32. tested and it works fine with 1.7.2 locally.
    The next step is to make WP load jQuery 1.7.2 from Google.

    Many thanks!
    ps: sorry for the english. i'm from brazil.

  6. Matthew Gedeon
    Member
    Posted 1 year ago #

    posted twice, sorry.

  7. Matthew Gedeon
    Member
    Posted 1 year ago #

    WordPress actually doesn't load jQuery itself, it only makes it available. It is being loaded by your theme, or a plugin. Can I get a link to your site to take a look at what's going on?

  8. fernando_ccs17
    Member
    Posted 1 year ago #

    http://www.gilsonmatos.com.br/index2.php

    I'm developing a theme.
    I think WP Events Calendar who is loading jquery.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic