• Resolved Peter

    (@hardpeter4u)


    Hi,
    Since latest update I have javascript error from browser console: `Uncaught TypeError: jQuery(…).lazyLoadXT is not a function
    at (index):332
    (anonymous) @ (index):332`

    From line 313 to 334 (index) this is the code:

    <script>jQuery(document).ready(function ($) {
        // lazy load
        jQuery.extend(jQuery.lazyLoadXT, {
            srcAttr: 'data-src',
            visibleOnly: false,
            updateEvent: 'load orientationchange resize scroll touchmove focus hover'
        });
    
        disableClick($);
    
        // for all images at single product page
        setTimeout(function () {
            resizeImg($);
            jQuery('a.woocommerce-product-gallery__trigger').css('visibility', 'visible');
        }, 2500);
    });
    
    jQuery(window).on('ajaxComplete', function () {
        setTimeout(function () {
            jQuery(window).lazyLoadXT();
        }, 300);
    });

    This is coming from file: /featured-image-from-url/includes/html/js/image.js

    Can you check this and see why this is happening?
    Thanks. I love using your plugin.
    Peter

    EDIT: I confirmed that this error is truly with version 2.3.7. I downgraded to 2.3.6 and the error disappears.

    • This topic was modified 7 years, 2 months ago by Peter.
    • This topic was modified 7 years, 2 months ago by Peter.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author fifu.app

    (@marceljm)

    Hi, @hardpeter4u.

    Thanks for reporting.

    If possible, update to 2.3.7 again, go to plugin settings > performance > lazy load and enable that. Let me know what happens.

    Thread Starter Peter

    (@hardpeter4u)

    Hi,
    I updated to 2.3.7 and followed your directions. No errors.
    Thanks!! I will mark this as resolved.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘LazyLoadXT Error’ is closed to new replies.