WordPress.org

Ready to get started?Download WordPress

Forums

Async JS and CSS
Javascript preventing plugin from working right (14 posts)

  1. anefarious1
    Member
    Posted 10 months ago #

    This is a great plugin. One small problem is that when I enable the Javascript feature (with or without detecting wp_head & wp_foot) it makes a plugin I use stop working. I've tried putting the URLs in the Execptions box (with and without the "" and - as you show in your example).

    The URLs are:

    http://canigivemydog.com/wp-content/plugins/strx-magic-floating-sidebar-maker/js/strx-magic-floating-sidebar-maker.js?ver=3.6.1

    and

    http://canigivemydog.com/wp-content/plugins/strx-magic-floating-sidebar-maker/js/debounce.js?ver=3.6.1

    Any idea how I can get this to work so I can keep this plugin and also have Javascript load async style? Thanks!

    http://wordpress.org/plugins/async-js-and-css/

  2. elCHAVALdelaWEB
    Member
    Plugin Author

    Posted 10 months ago #

    Hi !
    Can you see some errors in Developers Console in Chrome Browser(or in Firebug Console in Firefox browser) after activating the plugin?

  3. anefarious1
    Member
    Posted 10 months ago #

    Hi.

    I used Chrome and I think the errors are:

    Uncaught ReferenceError: retry_after is not defined pageview.js?version=1.6:8

    Uncaught ReferenceError: jQuery is not defined cortisone:118

    Uncaught ReferenceError: jQuery is not defined wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=3.5.3:298

    Uncaught ReferenceError: iworks_upprev is not defined upprev.js?ver=3.3.19:18

    I don't know if that really helps. In any case, I will just use your plugin for CSS and disable the Javascript option in the meantime.
    Thanks

  4. elCHAVALdelaWEB
    Member
    Plugin Author

    Posted 10 months ago #

    Try to put this into the exceptions list:
    jquery
    If there still some errors, let me know :)

  5. anefarious1
    Member
    Posted 10 months ago #

    I did that but it doesn't fix the problem. If it helps... maybe they stop working because they are sliders? Both plugins no longer slide into view..

  6. elCHAVALdelaWEB
    Member
    Plugin Author

    Posted 10 months ago #

    Is there some errors on Console after adding jquery to exceptions list ?

  7. anefarious1
    Member
    Posted 10 months ago #

    Hi. From that same page the errors are:

    [13:44:48.452] ReferenceError: retry_after is not defined @ http://content.zemanta.com/static/js/pageview.js?version=1.6:8

    [13:44:49.559] ReferenceError: jQuery is not defined @ http://canigivemydog.com/cortisone:140

    [13:44:49.676] ReferenceError: jQuery is not defined @ http://canigivemydog.com/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=3.5.3:298

    [13:44:49.773] ReferenceError: jQuery is not defined @ http://canigivemydog.com/wp-content/plugins/upprev/scripts/upprev.js?ver=3.3.19:13

    [13:44:50.067] Load denied by X-Frame-Options: http://googleads.g.doubleclick.net/xbbe/pixel?d=CMv9CRDxgwoYoN1T&v=APEucNUS9liDhXkXTFzKhskuhkHuU1i_ZFgIntVqlEfocV2lVzxSTvaJEBLknF8S3sHETWa-x1cV does not permit cross-origin framing.

    [13:44:50.087] ReferenceError: jQuery is not defined @ http://canigivemydog.com/cortisone:54

    Does that help?

  8. elCHAVALdelaWEB
    Member
    Plugin Author

    Posted 10 months ago #

    Ok, I see... you are not using the wordpress core jquery, but the google's public code.... so "jquery" exception is not working.
    You need to put this in exception to make it work: jquery.min.js

  9. anefarious1
    Member
    Posted 10 months ago #

    Yes I use a plugin called Use Google Libraries, sorry forgot to tell you that. I put in the exception you recommended but the two moving plugins still don't work. I checked the console again and got the following errors (strx is one of the moving plugins):

    Uncaught ReferenceError: retry_after is not defined pageview.js?version=1.6:8

    Uncaught ReferenceError: strx is not defined cortisone:212

    I will try to see what happens if I disable the Use Google Libraries plugin. If you have any other ideas THANKS!

  10. elCHAVALdelaWEB
    Member
    Plugin Author

    Posted 10 months ago #

    Disable this option "Detect <script> tags in wp_head". Check if it helped, and if not, also disable "Detect <script> tags in wp_foot"

  11. anefarious1
    Member
    Posted 10 months ago #

    Both ways you suggested eliminate the first error but the STRX (moving plugin in sidebar) remains:

    Uncaught ReferenceError: strx is not defined cortisone:212

    This single error is the problem.

  12. elCHAVALdelaWEB
    Member
    Plugin Author

    Posted 10 months ago #

    You will need to add to axceptions also this:
    debounce.js
    and
    strx-magic-floating-sidebar-maker.js

  13. anefarious1
    Member
    Posted 10 months ago #

    I tried this with and without wp_head & wp_foot, made sure to clear the cache...and no luck.. Same error:

    [11:51:35.339] ReferenceError: strx is not defined @ http://canigivemydog.com/cortisone:212

    Thanks for trying though.

  14. elCHAVALdelaWEB
    Member
    Plugin Author

    Posted 10 months ago #

    Yesterday I published a new version with reworked function of scripts dependencies loading. I'm not shure, but it is possible that it will help in your case.

Reply

You must log in to post.

About this Plugin

About this Topic