Jquery.lazyload.js to lazy load images using JS load even if its disabled

This topic has 5 replies, 3 voices, and was last updated 9 months, 1 weeks ago ago by Luca Rossi

  • Avatar: TimN2408
    TimN2408
    Participant
    February 13, 2024 at 11:42

    We have noticed that our theme continues to load the jquery.lazyload.js file to lazy load images using JavaScript. However, this should not be necessary as we are using WPRocket which allows lazy loading without the use of JavaScript. Could you please check if the lazy load feature is enabled in the theme settings? I deactivated it in the theme but its still loading… Could you check it?

    If so, please deactivate it to avoid conflicts with WPRocket and to optimize the performance of our website.

    Please, contact administrator
    for this information.
    4 Answers
    Avatar: TimN2408
    TimN2408
    Participant
    February 13, 2024 at 11:48

    Because in the Screenshot you can see its still getting loaded from the theme

    Files is visible for topic creator and
    support staff only.
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    February 13, 2024 at 13:56

    Hello, @TimN2408,

    Thank you for using our theme and for contacting us.

    To assist us in comprehensively understanding the issue you are encountering, we kindly request that you capture a video recording that demonstrates the problem. Once recorded, please upload the video file to a file-sharing service of your choice, such as WeTransfer (https://wetransfer.com/), and share the download link with us.

    Additionally, we would appreciate it if you could provide the URL of the specific page where the issue is occurring. This will enable us to conduct a thorough examination and offer the appropriate assistance.

    Thank you for your cooperation. We look forward to your prompt response so that we may address your concerns as efficiently as possible.

    Best regards,
    The 8Theme Team

    Avatar: TimN2408
    TimN2408
    Participant
    February 13, 2024 at 13:58

    Hi you can check it in this URL – in the network console – its not visible in the website but it makes it slower because of lazyloading, so please disable your lazyloader because its loading even when I disabled lazyload, can I just empty the lazyload file or do you have a better idea?

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    February 14, 2024 at 08:14

    Dear TimN2408,

    We hope this message finds you well.

    We would like to inform you that you have the option to entirely remove the lazyload library from your website. To do so, kindly insert the following custom code into the functions.php file within your child theme:

    
    add_action('wp_enqueue_scripts', 'n2t_wp_enqueue_scripts', 100);
    function n2t_wp_enqueue_scripts(){
        wp_dequeue_script('jquery_lazyload');
        wp_deregister_script('jquery_lazyload');
    }
    

    We trust that this solution will be beneficial for your needs. Should you require any further assistance, please do not hesitate to reach out.

    Warmest regards,
    The 8Theme Team

  • Viewing 5 results - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.