I have a page with Jquery and Prototype loaded. (I don’t know the order and have no control of this page)
<script type="text/javascript" src="jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="prototype.js"></script>
or
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript" src="jquery-1.4.4.min.js"></script>
Later in the same page, I am allowed to embed my own code. I need to know the order of loading these 2 libraries. For example, if prototype lib is loaded first, then do this otherwise do that.
How do I do this with jQuery or pure javascript?
This should help;