Swiper Library Loading on All Pages (Even Where It Is Not Used) #34130
abdul891
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the Problem
Elementor’s Swiper library is loading on every page of our website, even on pages where no Swiper slider is used.
Because of this, our site performance and PageSpeed scores are negatively impacted.
The following JavaScript file is being loaded globally:
Propose a Solution
I want imporve my product page speed. Product url is https://www.zerobonline.com/product/magna-plus-universal/
Additional Context
Elementor’s Swiper library is loading on every page of our website, even on pages where no Swiper slider is used.
Because of this, our site performance and PageSpeed scores are negatively impacted.
The following JavaScript file is being loaded globally:
https://www.zerobonline.com/wp-content/plugins/elementor/assets/lib/swiper/v8/swiper.min.js?ver=8.4.5
This unnecessary JavaScript increases:
JavaScript execution time
Page load time
Total Blocking Time (TBT)
Overall performance and Core Web Vitals scores
We need a solution to load this Swiper library only on pages where a Swiper slider is actually used, instead of loading it on every page of the website.
Please advise how we can prevent this script from loading site-wide and make it load conditionally.
Agreement
Beta Was this translation helpful? Give feedback.
All reactions