in my project I need to call javascript file as asynchronous. Ιf i use asynchronous, means script will send a request to the server, and continue it's execution without waiting for the reply. My problem is if I call JavaScript file as async "Uncaught ReferenceError: initcall is not defined
" I face the above error,
<script type="text/javascript" src = "somepath/test.js" async></script>
I call initcall() function in html file and I just put alert()
box in that function, If I run html file means I face this type of error, If I remove async call and run means alert is shown , what is the issue in async call?,I need to make my JavaScript file as async call. Anyone suggest me for my problem