I'm calling the function after adding the jquery script. but still, I'm getting a Reference error
<script>
    window.onload = function(){
        AddScript("https://cdn.syncfusion.com/js/assets/external/jquery-1.11.3.min.js");
        $(function () { //Error throws while executing this line
            //My code here
        });
    }
    function AddScript(source)
   {
      var head= document.getElementsByTagName('head')[0];
      var script= document.createElement('script');
      script.src= source;
      head.appendChild(script);
   }
</script>
 
     
    