Home › Forums › Basel support forum › Speed optimisation of the Theme
Speed optimisation of the Theme
- This topic has 9 replies, 2 voices, and was last updated 4 years, 2 months ago by Artem Temos.
-
AuthorPosts
-
September 14, 2020 at 7:12 pm #226211
pierredemeudonParticipanthi There,
Basel contains a lot of scripts. By default, they are loaded on all pages (shop, blog), delaying DOM ready, full page load, and in some cases even the TTFB.
I would like to have your insights re. the options of defer / unload the following js that Basel is using:1. I am not using countdown, 360 view, popups and parallax. Are you OK for me to desactivate those?
jquery.countdown.min.js
jquery.magnific-popup.min.js
jquery.parallax.min.js
jquery.parallax-scroll.min.js
threesixty.min.js2. What is the specific purpose of the following in the theme?
moment.min.js
moment-timezone-with-data.min.js
packery-mode.pkgd.min.js
jquery.panr.min.js
device.min.js
fastclick.min.js
imagesloaded.pkgd.min.js
jquery.justifiedGallery.min.js
vc_font_awesome_5_shims3. How can I know if I use these specific carousels?
owl.carousel.min.js
slick.min.js4. Are you OK that I have to keep the following and that they are kind of “must have”:
photoswipe.min.js
photoswipe-ui-default.min.js
jquery.pjax.min.js
style.css
waypoints.min.js
bootstrap.min.css
vivus.min.js
jquery.autocomplete.min.js
functions.jsThose 2 js seem to be Deprecated? I have issues with the 2nd one. Do you confirm?
TweenMax.min.js
jquery.nanoscroller.min.jsMy understanding is that this one is for users of deprecated IE. Correct?
html5.min.jsWaiting for your feedback
Kind regardsSeptember 15, 2020 at 6:14 am #226273
Artem TemosKeymasterHello,
1. Yes, you can disable these scripts if you are not using them. Note that they may cause JS errors in
functions.js
file so you will have to customize this file and remove their “calls”.2.
moment.min.js moment-timezone-with-data.min.js
– this part is for the countdown timer
packery-mode.pkgd.min.js
– masonry grid option
jquery.panr.min.js
– hover on banners
device.min.js
– required library
fastclick.min.js
– can be removed. Needed to compensate 300ms delay on click for mobile devices
imagesloaded.pkgd.min.js
– required library
jquery.justifiedGallery.min.js
– justify script for WordPress media library.
vc_font_awesome_5_shims
– not related to our theme.3. OWL Carousel is used on all carousels. The slick library is for vertical carousel of thumbnails on the single product page.
4. Yes, you need to keep them.
5. These libraries are required.
6.
html5.min.js
can be removed.Kind Regards
September 15, 2020 at 9:43 am #226358
pierredemeudonParticipantHi,
Clear, concise, 200% appreciated.
Re. risk on JS errors in functions.js … well, not being a Tech, I don’t understand, but thank you for the warning. I plan to use the plugin “cleanup assets” … Let’s see if it works.
Other question: by defaut, there is this hover effect in woocommerce shop and category view. It’s nice on desktop but on mobile (cc 60% of my visits), it doubles the number of images to load, without benefit for this device, and with a significant prejudice on speed. How could that be managed?
Kind regards
September 15, 2020 at 11:09 am #226386
Artem TemosKeymasterHello,
The only way to manage this hover extra image is to disable it globally. You can’t load it on desktop and don’t load on mobile, unfortunately.
Kind Regards
September 15, 2020 at 12:14 pm #226418
pierredemeudonParticipantHello,
I am fine with stopping it totally, there is a cost and no benefit for me.
You wrote earlier that jquery.panr.min.js is hover on banners.
So, how to totally stop this hover on products in woocommerce?
Kind regardsSeptember 15, 2020 at 1:09 pm #226452
Artem TemosKeymasterIt is not used for products but for banners. If you don’t use this hover then you can remove the library.
September 15, 2020 at 1:47 pm #226468
pierredemeudonParticipantHi,
Sorry, I was not clear apparently: how to desactivate the hover on products? Not talking about banner.
Kind regards
September 15, 2020 at 2:16 pm #226476
Artem TemosKeymasterYou can disable this function in Theme Settings -> Shop ->
Hover image
.September 15, 2020 at 2:28 pm #226478
pierredemeudonParticipantHello,
Sorry, I missed it 🙁
Thank you 🙂
Kind regardsSeptember 16, 2020 at 7:16 am #226584
Artem TemosKeymasterNo problem! You are welcome 🙂
-
AuthorPosts
The topic ‘Speed optimisation of the Theme’ is closed to new replies.
- You must be logged in to create new topics. Login / Register