I am currently using a js script for my main menu along with Fancybox.js (fancybox.net). I no longer use Fancybox but when I remove it from the enqueue list the menu script doesn't work.
I don't think the menu script is linked somehow to the fancybox script, but the menu stops working only when I remove fancybox. I can remove any other script and it won't affect my menu. Removing fancybox does not seem to affect any other scripts
Here is the script used for the menu:
Thanks in advance for your help