In my project every page loads a cdn jquery script. some use $ and some use jquery. and now I have to use my new script file 'myNewScript.js' in every page.
If I write my function like $(function (){})
it gives error on some pages like
$ is not function
and if I write function like this jquery(function (){})
then it also give error on other page like
jquery is not a function.
I want to know can we use both $
and jquery
as variable . like in same script file say 'myNewScript.js' I want to write $(function (){})
and jquery(function (){})
.
Every thing is dependent on each other so I can't reverse the loading of the script. I can't think of any solution...