jquery source file not being read every time

Viewed 34

I have this in my <head>:

<script type="text/javascript" src="https://example.org/js/jquery.js"></script>
<script type="text/javascript" src="https://example.org/js/functions.js"></script>

my functions.js file starts like this:

$(document).ready(function () {

yet, many times as my site loads, I get this error on the console:

Uncaught ReferenceError: $ is not defined

like there is no jquery file to read from so all my code in that file cant be read either and nothing works. Funny thing is that it doesn't happen every time, just every now and then and I don't know why. How can I stop this from happening?

Thank you.

0 Answers
Related