Home Forums Basel – Premium Template Site slow: how to reduce the number of requests and Javascript codes?

This topic contains 7 replies, has 2 voices, and was last updated by Elise Noromit Elise Noromit 2 weeks, 4 days ago.

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

    oleg_dmitriev
    Customer

    When I access the homepage, the home page makes 104 requests each time.
    It is too much. The load time of the homepage is 8.1 seconds, even under Cloudflare CDN!

    How can I reduce the number of requests?
    Any other optimisation?

    See the Waterfall for the site: https://imgur.com/a/YbaXU78

    Private Content Hidden
    #168284

    Hello,

    Please deactivate all the plugins not related to the theme and switch the parent theme, check the issue.

    Try to combine the files with the WP Rocket plugin. Cloudflare CDN does not decrease the number of the request.

    Best Regards

    #170296

    oleg_dmitriev
    Customer

    Thank you for your help.
    I use Asset Optimizer and disable JS and CSS, if it is not on each page, where it is not necessary.
    – Does the theme need Jetpack for anything? Can I remove it completely?
    – Does the Basel theme need MailChimp on all pages, or only on the Chechout (I am not using subscribe to newsletter)?
    – What is this JS for:
    Handle: basel-autocomplete
    Handle: basel-threesixty // can I disable it on the page if I am not using a 360 view?
    Handle: basel-justified-gallery // can I disable it on the page if I am not using a gallery?
    Handle: basel-magnific-popup // can I disable it on the page if I am not using the popup?
    Handle: basel-countdown

    #170385

    Hello,

    Please add the provided code to the functions.php of the child theme:

    function basel_disable_js_libs() {
    	wp_deregister_script('basel-autocomplete' );
    	wp_dequeue_script( 'basel-autocomplete' );
    	wp_deregister_script('basel-threesixty' );
    	wp_dequeue_script( 'basel-threesixty' );
    	wp_deregister_script('basel-justified-gallery' );
    	wp_dequeue_script( 'basel-justified-gallery' );
    	wp_deregister_script('basel-magnific-popup' );
    	wp_dequeue_script( 'basel-magnific-popup' );
    	wp_deregister_script('basel-countdown' );
    	wp_dequeue_script( 'basel-countdown' );
    }
    add_action( 'wp_enqueue_scripts', 'basel_disable_js_libs', 10200 );

    Alternatively, you can combine JS files and all the libraries would be combined in one file.

    Best Regards

    #170395

    oleg_dmitriev
    Customer

    Thank you!

    Can you please respond to my question about JetPack:
    – Does the theme need Jetpack for anything? Can I remove it completely?

    #170397

    Hello,

    The Jetpack is not needed for the theme, it is often attached to Woocommerce, you can delete it completely.

    Best Regards

    #170401

    oleg_dmitriev
    Customer

    re Jetpack – thank you, will wipe it out.
    which pages need MailChimp plugins? I understand that it is needed for WooCommerce checkout.

    #170418

    Hello,

    This is the subscription plugin, you can also delete it if you do not use it.

    Best Regards

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

You must be logged in to reply to this topic.