Back in this post, I made note of potential problems when jQuery is loaded more than once, such as with ZLB. Although I wasn't aware that other modules also load jQuery when the module is used, the problem is still easily solved.
Setup jQuery to be loaded all the time.
includes/templates/YOUR_TEMPLATE/jscript/jscript_1jQuery.js
jQuery must load before any scripts to be used with it. As Linux will list alphabetically and thus, Zen Cart will load alphabetically, I've had to use a naming schema like: jscript_1jquery.js in order to have a correct a load sequence.
Now that jQuery is loaded globally, it does not does not need to be loaded again. I've already described, in this post, how to disable ZLB from loading jQuery and the same applies to any other module. Unfortunately, I don't know what file FEC uses to load jQuery so you will have to find it. Odds are though, it uses an 'echo' or 'require' in one of its PHP files and using // will comment out that line.
Also, once you've commented out other modules from loading jQuery, you do not have to upload their jQuery file. This also allows you to determine what version of jQuery you want to use. Some of the newer jQuery stuff requires the newer version but usually, older jQuery scripts will still work with the newer version.


Reply With Quote
