-1

Sometime I get the following error

Uncaught ReferenceError: jQuery is not defined

but then without changing anything, I will not get the error, then after a while the error will start showing up again.

Is this a server issue, of how the files are getting served? Or is there something in my code I can change to avoid this?

Charles
  • 50,943
  • 13
  • 104
  • 142
FluxEngine
  • 12,730
  • 14
  • 57
  • 83

1 Answers1

1

You probably get that error after clearing your cache when your browser has to reload that file. You might be trying to use the jQuery operator $ before jQuery gets loaded. Make sure jQuery is loaded before anything that uses it.

km6zla
  • 4,787
  • 2
  • 29
  • 51