• Hello,

    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:
    https://i46.tinypic.com/bjed0o.jpg

    I am only using javascript as a novice and I cannot tell if both scripts are related or not. And what may be the cause of this problem if they’re not?

    Thanks in advance for your help

Viewing 1 replies (of 1 total)
  • Thread Starter StringerB

    (@stringerb)

    Just a quick note to let you know that I have resolved the problem. I moved the menu script on top of the enqueue list and it now works with or without fancybox.

    If anyone knows why, I’d still be happy to know…

Viewing 1 replies (of 1 total)
  • The topic ‘removing fancybox.js causes js menu crash’ is closed to new replies.