Home Forums WoodMart support forum Scripts loading on pages

Scripts loading on pages

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #349946

    ToriTori38
    Participant

    Hi 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.js

    woodmart-theme
    /wp-content/themes/woodmart/js/scripts/global/helpers.min.js

    wd-woocommerce-notices
    /wp-content/themes/woodmart/js/scripts/wc/woocommerceNotices.min.js

    wd-admin-bar-slider-menu
    /wp-content/themes/woodmart/js/scripts/admin/adminBarSliderMenu.min.js

    wd-header-builder
    /wp-content/themes/woodmart/js/scripts/header/headerBuilder.min.js

    wd-menu-offsets
    /wp-content/themes/woodmart/js/scripts/menu/menuOffsets.min.js

    wd-menu-setup
    /wp-content/themes/woodmart/js/scripts/menu/menuSetUp.min.js

    wd-lazy-loading
    /wp-content/themes/woodmart/js/scripts/global/lazyLoading.min.js

    wd-wishlist
    /wp-content/themes/woodmart/js/scripts/wc/wishlist.min.js

    wd-on-remove-from-cart
    /wp-content/themes/woodmart/js/scripts/wc/onRemoveFromCart.min.js

    wd-flickity-library
    /wp-content/themes/woodmart/js/libs/flickity-all.min.js

    wd-slider-element
    /wp-content/themes/woodmart/js/scripts/elements/slider.min.js

    wd-owl-carousel
    /wp-content/themes/woodmart/js/scripts/global/owlCarouselInit.min.js

    wd-flickity-fade-library
    /wp-content/themes/woodmart/js/libs/flickity-fade.min.js

    wd-owl-library
    /wp-content/themes/woodmart/js/libs/owl.carousel.min.js

    wd-waypoints-library
    /wp-content/themes/woodmart/js/libs/waypoints.min.js

    wd-products-tabs
    /wp-content/themes/woodmart/js/scripts/wc/productsTabs.min.js

    wd-magnific-library
    /wp-content/themes/woodmart/js/libs/magnific-popup.min.js

    wd-action-after-add-to-cart
    /wp-content/themes/woodmart/js/scripts/wc/actionAfterAddToCart.min.js

    wd-product-images-gallery
    /wp-content/themes/woodmart/js/scripts/wc/productImagesGallery.min.js

    wd-quick-view
    /wp-content/themes/woodmart/js/scripts/wc/quickView.min.js

    wd-tooltips-library
    /wp-content/themes/woodmart/js/libs/tooltips.min.js

    wd-btns-tooltips
    /wp-content/themes/woodmart/js/scripts/global/btnsToolTips.min.js

    wd-swatches-variations
    /wp-content/themes/woodmart/js/scripts/wc/swatchesVariations.min.js

    wd-add-to-cart-all-types
    /wp-content/themes/woodmart/js/scripts/wc/addToCartAllTypes.min.js

    wd-woocommerce-quantity
    /wp-content/themes/woodmart/js/scripts/wc/woocommerceQuantity.min.js

    wd-products-load-more
    /wp-content/themes/woodmart/js/scripts/wc/productsLoadMore.min.js

    wd-click-on-scroll-btn
    /wp-content/themes/woodmart/js/scripts/global/clickOnScrollButton.min.js

    wd-mobile-navigation
    /wp-content/themes/woodmart/js/scripts/menu/mobileNavigation.min.js

    wd-autocomplete-library
    /wp-content/themes/woodmart/js/libs/autocomplete.min.js

    wd-ajax-search
    /wp-content/themes/woodmart/js/scripts/global/ajaxSearch.min.js

    wd-cart-widget
    /wp-content/themes/woodmart/js/scripts/wc/cartWidget.min.js

    wd-search-full-screen
    /wp-content/themes/woodmart/js/scripts/global/searchFullScreen.min.js

    bootstrap
    /wp-content/themes/woodmart/css/bootstrap-light.min.css

    woodmart-style
    /wp-content/themes/woodmart/css/parts/base.min.css

    woodmart-frontend-admin-bar
    /wp-content/themes/woodmart/inc/admin/assets/css/style-frontend.css

    wd-widget-recent-post-comments
    /wp-content/themes/woodmart/css/parts/widget-recent-post-comments.min.css

    wd-widget-nav
    /wp-content/themes/woodmart/css/parts/widget-nav.min.css

    wd-widget-wd-layered-nav-product-cat
    /wp-content/themes/woodmart/css/parts/woo-widget-wd-layered-nav-product-cat.min.css

    wd-lazy-loading
    /wp-content/themes/woodmart/css/parts/opt-lazy-load.min.css

    wd-mc4wp-deprecated
    /wp-content/themes/woodmart/css/parts/int-mc4wp-deprecated.min.css

    wd-mc4wp
    /wp-content/themes/woodmart/css/parts/int-mc4wp.min.css

    wd-woo-stripe
    /wp-content/themes/woodmart/css/parts/int-woo-stripe.min.css

    wd-wpbakery-base
    /wp-content/themes/woodmart/css/parts/int-wpbakery-base.min.css

    wd-notices-fixed
    /wp-content/themes/woodmart/css/parts/mod-notices-fixed.min.css

    wd-woocommerce-base
    /wp-content/themes/woodmart/css/parts/woocommerce-base.min.css

    #350103

    Artem Temos
    Keymaster

    Hello,

    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

    #350179

    ToriTori38
    Participant

    Ok 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?

    #350199

    Artem Temos
    Keymaster

    Font 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.

    #350230

    ToriTori38
    Participant

    Yes 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.

    #350703

    Artem Temos
    Keymaster

    We are constantly working on such improvements. Unfortunately, sometimes it is not possible to recognize if the script is used or not.

    Kind Regards

    #350709

    ToriTori38
    Participant

    Thanks 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?

    #350828

    Artem Temos
    Keymaster

    Please, send us your admin access so we can check what is wrong with this file and why it is loading there.

    Kind Regards

Viewing 8 posts - 1 through 8 (of 8 total)