I'm trying to load scripts on web page in the following order:
<head>
...
<script src="/file1.js"></script>
<script src="/jquery-1.7.2.min.js"></script>
<script>$.holdReady(true);</script>
<script src="/file2.js"></script>
...
</head>
And sometimes I receive an error "ReferenceError: $ is not defined" in the line <script>$.holdReady(true);</script>
but file1.js and jquery-1.7.2.min.js are loaded successfully.
What am I doing wrong?