Will the JavaScript execution till an external script loads in this condition?
<script type="text/javascript" src="external/ext.js"></script>
<script type"text/javascript">var same_variable = 1;</script>
What happens if ext.js also has the same variable used?
I'm troubleshooting any issue in my ASP.NET application where jQuery is loaded multiple times and the plugins are being overwritten. I'm having few user controls which are loaded in the pages with some jQuery plugin behavior. The jQuery reference is given in master page. But some third party products are installed in the application too which are loading their own jQuery. Where exactly should I put the noConflict() method? In master page immediately after I load jQuery or can I put it in my user control before I call the plugin method?
More details -
In Master Page I've the following references in the same order-
<jquery.min.js>
<plugin1.js>
<plugin2.js>
<plugin3.js>
In my user control (ascx file)
<plugin4.js>
<script>
//Use plugin4
//ERROR
</script>
A third party product is loading its own jQuery.
Observation using Chrome Network Tab -
The JS files are loaded in the following order -
<jquery.min.js>
<plugin1.js>
<plugin2.js>
<plugin3.js>
<plugin4.js>
<third party jquery.js>
Hence when I use plugin4 inside my user control it is giving an error that "Object has no method".