Title: [Plugin: pb-embedFlash] calling jquery script with wp_enqueue_script
Last modified: August 19, 2016

---

# [Plugin: pb-embedFlash] calling jquery script with wp_enqueue_script

 *  [matthijs_b](https://wordpress.org/support/users/matthijs_b/)
 * (@matthijs_b)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/plugin-pb-embedflash-calling-jquery-script-with-wp_enqueue_script/)
 * Hi, A bug report, not sure where else to report it to. In the file inc/functions.
   inc around line 173 the plugin calls jquery (and other scripts) with an absolute
   path.
 * This can create (it did) a conflict easily with other scripts that also use and
   call jquery. WordPress can solve this problem by using wp_enqueue_script() which
   gives scripts a handle and avoids loading the same script twice (which broke 
   mine).

Viewing 1 replies (of 1 total)

 *  [pasber](https://wordpress.org/support/users/pasber/)
 * (@pasber)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/plugin-pb-embedflash-calling-jquery-script-with-wp_enqueue_script/#post-903720)
 * You can tell the plugin not to load any JavaScript libraries, so that it uses
   the existing one/s (e.g. loaded by another plugin).
 * pb-embedFlash Settings -> Shadowbox & Popup
 * So principally you are right: [wp_enqueue_script()](http://codex.wordpress.org/Function_Reference/wp_enqueue_script)
   can prevent errors. But most of the plugins out their load JavaScript files from
   their plugin folder, so it’s not that safe as it’s claimed to be.
 * But my prime reason to use the “hard way” is that I cannot load scripts while
   being in the output. This is important because I don’t want to load all the scripts
   but give the option to use the different modes (object tag, shadowbox, popup,…)
   simultaneously.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: pb-embedFlash] calling jquery script with wp_enqueue_script’
is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [pasber](https://wordpress.org/support/users/pasber/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/plugin-pb-embedflash-calling-jquery-script-with-wp_enqueue_script/#post-903720)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
