Loading Jquery UI before Jquery

jquery

Solution

Because `jQuery UI` need `jQuery` library.

See in error log, `$ is undefined`, because they are not functions like `funcName()` but jQuery functions `$.funcName()` with other jQuery functions required.

<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>

Now load `jQuery`. But error is still from `UI`.

<script src="http://code.jquery.com/jquery-2.0.3.js"></script>

Problem

When I load JQuery UI before JQuery, my script does not function at all. For example ``` <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> <script src="http://code.jquery.com/jquery-2.0.3.js"></script> ``` The above would not work. But this would work ``` <script src="http://code.jquery.com/jquery-2.0.3.js"></script> <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> ``` Why is this?

Original source