1. Home
  2. WooCommerce Shipping Calculator
  3. Advanced Usage

How to speed up the shipping calculator load time

By default, the shipping calculator is loaded using AJAX after the rest of the page has initially been loaded, to ensure that it is always displaying the correct information for each user even if the page is being cached.

If you want to disable the AJAX loading and make the shipping calculator load with the rest of the page elements, you can use the following code snippet:

add_filter( 'wsc_load_using_ajax', '__return_false' );

We only recommend doing this if you are sure that the page you are showing the shipping calculator is not being cached by a cache plugin or by your hosting.

After disabling the AJAX loading, you should test the shipping calculator carefully to make sure that different users from distinct countries see their correct shipping info.

Related Articles

If searching the knowledge base hasn't answered your question, please contact support.