Enqueueing scripts only if not in queue already
-
Hi, I am developing a plugin which uses Fancybox jQuery plugin. For completeness, I am including the Fancybox script in the plugin package. However, I don’t want to load id from my plugin if it is already loaded by something else.
Effectively, I want to make sure that Fancybox isn’t added multiple times.
Is there a way that I can find out what scripts are already in the script queue (from wp_enqueue_script) in order to prevent loading the script multiple times?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Enqueueing scripts only if not in queue already’ is closed to new replies.