Shopify loads our script asynchronously, i.e. first the page is loaded properly and then our script. So sometimes there might be an inevitable delay in loading the calendar

However, there is a workaround to load the script early along with your page. Basically, you will have to add the script directly in the head section of your theme.

To do this, please paste the following script inside the head section of your theme.

  1. Go to Online Store → Edit Code
  2. Search for theme.liquid file and <head> section
  3. Paste the following snippet in the head section of the theme.
  4. Save

{{‘https://testodd.spicegems.com/js/serve/shopname.myshopify.com/latest.js?shop=kota-doria.myshopify.com’ | script_tag }}

Here is a quick tutorial about it –