• Hey, im on a nearly clean install of WP on my local machine.
    When I enable your plugin in get the following error message in the console:

    jquery-3.3.1.slim.min.js:2 Uncaught TypeError: l.ajax is not a function
        at HTMLButtonElement.<anonymous> (llc_click.min.js?ver=1.0.3:1)
        at HTMLButtonElement.dispatch (jquery-3.3.1.slim.min.js:2)
        at HTMLButtonElement.v.handle (jquery-3.3.1.slim.min.js:2)
        at Object.trigger (jquery-3.3.1.slim.min.js:2)
        at HTMLButtonElement.<anonymous> (jquery-3.3.1.slim.min.js:2)
        at Function.each (jquery-3.3.1.slim.min.js:2)
        at w.fn.init.each (jquery-3.3.1.slim.min.js:2)
        at w.fn.init.trigger (jquery-3.3.1.slim.min.js:2)
        at HTMLDocument.<anonymous> (llc_click.min.js?ver=1.0.3:1)
        at l (jquery-3.3.1.slim.min.js:2)
    jQuery.Deferred exception: l.ajax is not a function TypeError: l.ajax is not a function
        at HTMLButtonElement.<anonymous> (https://localhost/MyTheme/wp-content/plugins/lazy-load-for-comments/public/js/llc_click.min.js?ver=1.0.3:1:271)
        at HTMLButtonElement.dispatch (https://code.jquery.com/jquery-3.3.1.slim.min.js:2:41964)
        at HTMLButtonElement.v.handle (https://code.jquery.com/jquery-3.3.1.slim.min.js:2:39983)
        at Object.trigger (https://code.jquery.com/jquery-3.3.1.slim.min.js:2:62230)
        at HTMLButtonElement.<anonymous> (https://code.jquery.com/jquery-3.3.1.slim.min.js:2:62825)
        at Function.each (https://code.jquery.com/jquery-3.3.1.slim.min.js:2:2765)
        at w.fn.init.each (https://code.jquery.com/jquery-3.3.1.slim.min.js:2:1438)
        at w.fn.init.trigger (https://code.jquery.com/jquery-3.3.1.slim.min.js:2:62801)
        at HTMLDocument.<anonymous> (https://localhost/My-Theme/wp-content/plugins/lazy-load-for-comments/public/js/llc_click.min.js?ver=1.0.3:1:669)
        at l (https://code.jquery.com/jquery-3.3.1.slim.min.js:2:29567) undefined

    It also tries to load jquery 3 from a cnd? Why?
    Im using the built-in jquery via “wp_enqueue_script( ‘jquery’ );”

    Can you tell me what I did wrong? ??

    Cheers

    • This topic was modified 6 years, 10 months ago by mufffuss.
  • The topic ‘jQuery.Deferred exception: l.ajax is not a function TypeError: l.ajax is not a f’ is closed to new replies.