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, we need to add the script directly in the head section of your theme.
In Shopify 2.0 it is quite simple to enable the Speed Up Script (add the script directly in the head section) using Theme editor.
To do this, you need to enable our app extension under the App Embeds in the Theme editor.
1:- Go to the Online store under the Shopify Admin.
2:- Click on the Customize button in the Current theme section.
3:- Click on the Theme settings at the bottom-left of Theme editor.
4:- Select the App Embeds tab under the Theme Settings sidebar.
5:- Now you can see the app extension for the Speed Up Script (ODD SpeedUp), click the toggle button to enable it.
6:- click on Save.