html - JavaScript conflict preventing page from displaying correctly -


i'm experiencing conflict in page jquery scripts, features(top menu or image slider) in page not open unless page reloaded several times. http://www.in2info.com/leroyalcorporatev2/beirut/restaurants.php?v=4

can me fix it. thank you

problem:

uncaught referenceerror: $ not defined(anonymous function)      uncaught typeerror: $ not function(anonymous function)  

cause:

which mean wherever you're loading $ (i'm assuming jquery), might not loading in time, when site gets hit initially, jquery isn't ready, , menu broken.

make sure you're adding jquery in correctly

example:

<head>      <script src="jquery-1.11.2.min.js"></script> </head> 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -