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?
This topic has 14 replies, 4 voices, and was last updated 3 months ago ago by Andrew Mitchell
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?
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
Hi, thank you for the guidance. I disabled it, but it still loads.
I also cleared the plugin cache and Cloudflare cache.
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!
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.
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
was placed.
Thank you for providing access. We have made some changes; kindly review them at your convenience.
Best regards,
The 8Theme Team
Thanks for your help. I checked and noticed that the Elementor Swiper is repeated twice.
Please take a look at the image.
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
It seems the issue is resolved, thank you for your help.
Will these points be considered in the next theme update?
Hello, MAHDAR,
Yes, this will be included in the next theme update.
Best regards,
8Theme Team
“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.”
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
You must be logged in to reply to this topic.Log in/Sign up