Hi @rkagrahari1,
The reason is that the library is not being loaded before the script. The file https://demo.desertmart.com/wp-content/cache/minify/f82f2.js contains the following script:
jQuery(".wpcf7-intl-tel").intlTelInput({initialCountry:"auto",utilsScript:wpcf7_utils_url,geoIpLookup:function(a){jQuery.get("//ipinfo.io",function(){},"jsonp").always(function(b){var c=b&&b.country?b.country:"";a(c)})}}),jQuery(".wpcf7-intl-tel").each(function(){var a=jQuery(this),b=a.parents("span")[0],c=a.parents("form");c.submit(function(){jQuery(b).children("input.wpcf7-intl-tel-full").val(a.intlTelInput("getNumber")),jQuery(b).children("input.wpcf7-intl-tel-country-name").val(a.intlTelInput("getSelectedCountryData").name),jQuery(b).children("input.wpcf7-intl-tel-country-code").val(a.intlTelInput("getSelectedCountryData").dialCode)})});
If I run it in the console, it works great.
However, when the console has logged a previous error saying jQyuery().intlTelInput() is not defined. This means that when the code I pasted above is run automatically, the library is not loaded. The plugin specifies the dependency, however, your cache plugin is deferring the load of the library. That’s why it fails.
This is how the libray is being loaded:
<script type='text/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/7.0.1/js/intlTelInput.min.js' defer onload=''>
That defer
is probably the reason