WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Changing CF7 javascript URLs (4 posts)

  1. cosmictap
    Member
    Posted 4 years ago #

    I am trying to offload scripts onto a CDN, as they are slowing down my site loading time.

    I'd like to change the location that CF7 calls its scripts from. I believe it calls two scripts:

    http://www.mysite.com/wp-content/plugins/contact-form-7/scripts.js?ver=2.2.1
    and
    http://www.mysite.com/wp-includes/js/jquery/jquery.form.js?ver=2.02m

    I'm hoping someone can tell me where I can override this so that they are called from:

    http://cache.mysite.com/wp-content/plugins/contact-form-7/scripts.js?ver=2.2.1
    and
    http://cache.mysite.com/wp-includes/js/jquery/jquery.form.js?ver=2.02m

    Ideally I'd like to do this so that it doesn't "break" the next time I upload the plugin, but I realize this may be problematic. :)

    thanks in advance.

  2. Frederick Townes
    Member
    Posted 4 years ago #

    Everything might be simplified for you if you used W3 Total Cache for your caching and CDN plugin: http://wordpress.org/extend/plugins/w3-total-cache/ (use the development version: http://wordpress.org/extend/plugins/w3-total-cache/download/)

  3. cosmictap
    Member
    Posted 4 years ago #

    Thanks, I actually am using your plugin, but still haven't figured out how to get those specific scripts to load from the CDN.

  4. Frederick Townes
    Member
    Posted 4 years ago #

    You need to add them to the minify groups on the minify tab, or you can try using the help tool if you're using the development version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic