So I’m trying to implement a jScrollPane (http://jscrollpane.kelvinluck.com) function in my site so it is usable with most browsers. Unfortunately, I’m plagued with the “Uncaught TypeError: $(…).jScrollPane is not a function” error.
jQuery is first to be loaded then the scripts and yet this error is persistent.
Obvious question, but are you including those files they ask you to? BEFORE you call the scrollPane function?
It’s saying that it can’t find any reference to jScrollPane(), which leads to the point that it can’t find the function. Which means that the files aren’t being properly included.
Since it’s caused a series of errors, I moved everything back to where it was so my site’s functional again. I’ll just have to get back to it tomorrow.
You don’t need to move all of them down to get things working. Instead, you can just move down the code that sets up the onload/onresize event handling.
The other libraries that things depend on do result in a slower page-load experience for people when they’re higher up on the page. Moving them down to just before the body results in a better experience for people loading your page, which can be done a bit at a time until the problem is found and fixed.
Sadly though the linked-to site doesn’t seem to be giving me a 403 request blocked error, otherwise I’d investigate to give more concrete advice on how to get everything working well.