Support » Plugin: Amazon Auto Links - Amazon Associates Affiliate Plugin » Load output with Javascript not working

  • Resolved mcleare1

    (@mcleare1)


    Hi, noticed since today or last update that “load output with javascript” is not working. Just stuck on “now loading”

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author miunosoft

    (@miunosoft)

    Hi,

    Please check the browser console log. If you see errors, I’d like to see them.

    Hi, I see this

    Uncaught ReferenceError: jQuery is not defined
    <anonymous> /wp-content/plugins/amazon-auto-links/asset/js/ajax-unit-loading.min.js:6

    Plugin Author miunosoft

    (@miunosoft)

    It seems jQuery is not loaded on your site.

    Can you insert the following code in your theme functions.php to see if it solves the problem?

    /* Amazon Auto Links - Load jQuery */
    add_action( 'wp_enqueue_scripts', 'aal_load_jquery' );
    function aal_load_jquery() {
      wp_enqueue_script( 'jquery' );
    }

    Thanks. Tried that and it works but only when I’m logged in. Same console error after.

    Turned off the “defer render blocking js” option in my caching plugin and its working now.

    Plugin Author miunosoft

    (@miunosoft)

    Glad to hear you sorted it!

    Yes, I turned back on defer render blocking but was able to make /wp-includes/js/jquery/jquery.js an exception.

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.