Home › Forums › WoodMart support forum › Scripts loading on pages
Scripts loading on pages
- This topic has 7 replies, 2 voices, and was last updated 3 years, 3 months ago by
Artem Temos.
-
AuthorPosts
-
February 3, 2022 at 2:29 pm #349946
ToriTori38ParticipantHi there,
Despite saying you do not load scripts on pages where they are not needed, it seems maybe you do. I am trying to remove scripts from my home page which are not used, and I came across these 2. I disabled these scripts and do not see any problems front-end. Can you confirm if I can safely remove these?
WPBakery
vc_font_awesome_5
/wp-content/plugins/js_composer/assets/lib/bower/font-awesome/css/all.min.css (55kb)wd-magnific-library – I do not use your popup.
/wp-content/themes/woodmart/js/libs/magnific-popup.min.js (20kb)—————-
On our home page we only use your slider, Owl Library, Slide out cart etc, but below you will see all the JS and CSS files loaded on our home page. Can you please cast your expert eye over this and tell us which items we potentially do not need to load on our home page (home page URL in private content). Many thanks:
wd-device-library
/wp-content/themes/woodmart/js/libs/device.min.jswoodmart-theme
/wp-content/themes/woodmart/js/scripts/global/helpers.min.jswd-woocommerce-notices
/wp-content/themes/woodmart/js/scripts/wc/woocommerceNotices.min.jswd-admin-bar-slider-menu
/wp-content/themes/woodmart/js/scripts/admin/adminBarSliderMenu.min.jswd-header-builder
/wp-content/themes/woodmart/js/scripts/header/headerBuilder.min.jswd-menu-offsets
/wp-content/themes/woodmart/js/scripts/menu/menuOffsets.min.jswd-menu-setup
/wp-content/themes/woodmart/js/scripts/menu/menuSetUp.min.jswd-lazy-loading
/wp-content/themes/woodmart/js/scripts/global/lazyLoading.min.jswd-wishlist
/wp-content/themes/woodmart/js/scripts/wc/wishlist.min.jswd-on-remove-from-cart
/wp-content/themes/woodmart/js/scripts/wc/onRemoveFromCart.min.jswd-flickity-library
/wp-content/themes/woodmart/js/libs/flickity-all.min.jswd-slider-element
/wp-content/themes/woodmart/js/scripts/elements/slider.min.jswd-owl-carousel
/wp-content/themes/woodmart/js/scripts/global/owlCarouselInit.min.jswd-flickity-fade-library
/wp-content/themes/woodmart/js/libs/flickity-fade.min.jswd-owl-library
/wp-content/themes/woodmart/js/libs/owl.carousel.min.jswd-waypoints-library
/wp-content/themes/woodmart/js/libs/waypoints.min.jswd-products-tabs
/wp-content/themes/woodmart/js/scripts/wc/productsTabs.min.jswd-magnific-library
/wp-content/themes/woodmart/js/libs/magnific-popup.min.jswd-action-after-add-to-cart
/wp-content/themes/woodmart/js/scripts/wc/actionAfterAddToCart.min.jswd-product-images-gallery
/wp-content/themes/woodmart/js/scripts/wc/productImagesGallery.min.jswd-quick-view
/wp-content/themes/woodmart/js/scripts/wc/quickView.min.jswd-tooltips-library
/wp-content/themes/woodmart/js/libs/tooltips.min.jswd-btns-tooltips
/wp-content/themes/woodmart/js/scripts/global/btnsToolTips.min.jswd-swatches-variations
/wp-content/themes/woodmart/js/scripts/wc/swatchesVariations.min.jswd-add-to-cart-all-types
/wp-content/themes/woodmart/js/scripts/wc/addToCartAllTypes.min.jswd-woocommerce-quantity
/wp-content/themes/woodmart/js/scripts/wc/woocommerceQuantity.min.jswd-products-load-more
/wp-content/themes/woodmart/js/scripts/wc/productsLoadMore.min.jswd-click-on-scroll-btn
/wp-content/themes/woodmart/js/scripts/global/clickOnScrollButton.min.jswd-mobile-navigation
/wp-content/themes/woodmart/js/scripts/menu/mobileNavigation.min.jswd-autocomplete-library
/wp-content/themes/woodmart/js/libs/autocomplete.min.jswd-ajax-search
/wp-content/themes/woodmart/js/scripts/global/ajaxSearch.min.jswd-cart-widget
/wp-content/themes/woodmart/js/scripts/wc/cartWidget.min.jswd-search-full-screen
/wp-content/themes/woodmart/js/scripts/global/searchFullScreen.min.jsbootstrap
/wp-content/themes/woodmart/css/bootstrap-light.min.csswoodmart-style
/wp-content/themes/woodmart/css/parts/base.min.csswoodmart-frontend-admin-bar
/wp-content/themes/woodmart/inc/admin/assets/css/style-frontend.csswd-widget-recent-post-comments
/wp-content/themes/woodmart/css/parts/widget-recent-post-comments.min.csswd-widget-nav
/wp-content/themes/woodmart/css/parts/widget-nav.min.csswd-widget-wd-layered-nav-product-cat
/wp-content/themes/woodmart/css/parts/woo-widget-wd-layered-nav-product-cat.min.csswd-lazy-loading
/wp-content/themes/woodmart/css/parts/opt-lazy-load.min.csswd-mc4wp-deprecated
/wp-content/themes/woodmart/css/parts/int-mc4wp-deprecated.min.csswd-mc4wp
/wp-content/themes/woodmart/css/parts/int-mc4wp.min.csswd-woo-stripe
/wp-content/themes/woodmart/css/parts/int-woo-stripe.min.csswd-wpbakery-base
/wp-content/themes/woodmart/css/parts/int-wpbakery-base.min.csswd-notices-fixed
/wp-content/themes/woodmart/css/parts/mod-notices-fixed.min.csswd-woocommerce-base
/wp-content/themes/woodmart/css/parts/woocommerce-base.min.cssFebruary 4, 2022 at 10:00 am #350103
Artem TemosKeymasterHello,
You don’t need to adjust any script loading manually. If they are loaded on your home page then they are required for something. We are constantly working on our JS & CSS optimization and try to load as few files as possible.
Kind Regards
February 4, 2022 at 1:23 pm #350179
ToriTori38ParticipantOk but what about the font awesome 5 css. Where exactly do you use that on the homepage if I have not loaded any icons on my site? Maybe you can explain what you use with font awesome 5 in your theme.
Also why do I need the popup js file if I don’t use your popup feature?
February 4, 2022 at 3:10 pm #350199
Artem TemosKeymasterFont Awesome 5 file comes with WPBakery, not with the theme. As for the popup JS, we are working on this issue and will improve in our next update.
February 4, 2022 at 7:22 pm #350230
ToriTori38ParticipantYes but as you see, there are possibly quite a few files which are loading which do not need to load. I just spotted 2 (which you have now confirmed), but I am sure there are quite a few more.
February 6, 2022 at 10:49 am #350703
Artem TemosKeymasterWe are constantly working on such improvements. Unfortunately, sometimes it is not possible to recognize if the script is used or not.
Kind Regards
February 6, 2022 at 10:56 am #350709
ToriTori38ParticipantThanks yes I can understand that.
Can you just quickly help me with the font awesome 5 from WPBakery question.
The only icons loaded are ones you use in the theme (slide out cart, favourites, my account section etc).. but I believe all those fonts come from your theme and are laoded in a seperate font file.Therefore if I load no icons with any WP Bakery element, can I safely disable this CSS file?
February 7, 2022 at 7:20 am #350828
Artem TemosKeymasterPlease, send us your admin access so we can check what is wrong with this file and why it is loading there.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register