Viewing 7 replies - 1 through 7 (of 7 total)
  • 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.

    Thread Starter fernando_ccs17

    (@fernando_ccs17)

    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!

    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.

    Thread Starter fernando_ccs17

    (@fernando_ccs17)

    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.

    posted twice, sorry.

    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?

    Thread Starter fernando_ccs17

    (@fernando_ccs17)

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

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Nivo Slider for WordPress] Works,but loading jQuery 1.5.1 from Google CDN.Can it use the na’ is closed to new replies.