Disabling Extra Swiper - by MAHDAR - on WordPress WooCommerce support

This topic has 14 replies, 4 voices, and was last updated 3 months ago ago by Andrew Mitchell

  • Avatar: mahdar
    MAHDAR
    Participant
    December 23, 2024 at 19:57

    Hi, I hope you’re doing well. Currently, both the theme’s Swiper and Elementor’s Swiper are active.

    Is it necessary for both to be active?

    Files is visible for topic creator and
    support staff only.
    13 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 24, 2024 at 08:09

    Hello, MAHDAR,

    Thank you for reaching out to us.

    You can disable theme Swiper JS via Theme Options > Speed Optimization.

    Best regards,
    8Theme’s Team

    Avatar: mahdar
    MAHDAR
    Participant
    December 24, 2024 at 10:21

    Hi, thank you for the guidance. I disabled it, but it still loads.

    I also cleared the plugin cache and Cloudflare cache.

    Avatar: Justin
    Luca Rossi
    Support staff
    December 24, 2024 at 17:09

    Hi @MAHDAR,

    Please add the following code under functions.php file locates in your child theme:

    
    add_action( 'wp_enqueue_scripts', 'm2t_enqueue_page_css_files', 99999 );
    function m2t_enqueue_page_css_files() {
         wp_dequeue_script( 'et_swiper-slider' );
    }
    

    Hope it helps!

    Avatar: mahdar
    MAHDAR
    Participant
    December 24, 2024 at 20:10

    Thanks, I added the code, activated Cloudflare’s development mode, and cleared the WP Rocket plugin cache, but when I test the speed, it still loads.

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    December 25, 2024 at 13:08

    Hello, MAHDAR,

    We have identified that the issue is caused by a conflict with the old Elementor option, “Optimized Assets Loading.” Although this option has been removed, its value still remains in the database. To address and resolve this problem, we kindly request that you provide us with FTP access.

    Thank you for your cooperation.

    Best regards,
    8Theme Team

    Avatar: mahdar
    MAHDAR
    Participant
    December 25, 2024 at 17:03

    was placed.

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    December 25, 2024 at 19:30

    Thank you for providing access. We have made some changes; kindly review them at your convenience.

    Best regards,
    The 8Theme Team

    Avatar: mahdar
    MAHDAR
    Participant
    December 25, 2024 at 20:07

    Thanks for your help. I checked and noticed that the Elementor Swiper is repeated twice.

    Please take a look at the image.

    Files is visible for topic creator and
    support staff only.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    December 25, 2024 at 20:32

    We have attempted to disable an additional connection to the Elementor Swiper script. Could you kindly check if the issue has been resolved? It appears that certain Elementor widgets forcibly load scripts, and we have now tried to disconnect this functionality. Please verify if the scripts are no longer duplicating.

    Thank you for your attention to this matter.

    Best regards,
    8Theme Team

    Avatar: mahdar
    MAHDAR
    Participant
    December 25, 2024 at 21:16

    It seems the issue is resolved, thank you for your help.

    Will these points be considered in the next theme update?

    Files is visible for topic creator and
    support staff only.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    December 26, 2024 at 10:48

    Hello, MAHDAR,

    Yes, this will be included in the next theme update.

    Best regards,
    8Theme Team

    Avatar: mahdar
    MAHDAR
    Participant
    January 10, 2025 at 11:08

    “Hello, I hope you’re doing well.

    I saw in the uploaded JS files that the Swiper file is loading again.

    Both Elementor and the theme are loading it.”

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    January 10, 2025 at 13:56

    Hello, MAHDAR,
    The swiperinit.min.js file is not an additional Swiper library; rather, it is an initialization file for the slider. This file is essential to ensure that the theme’s sliders function properly with the Elementor library. Unfortunately, it cannot be omitted.

    Best regards,
    The 8Theme Team

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

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

Helpful Topics

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