Title: How do I load theme javascript first before loading a plugin javascript
Last modified: August 22, 2016

---

# How do I load theme javascript first before loading a plugin javascript

 *  [ceekeigh](https://wordpress.org/support/users/ceekeigh/)
 * (@ceekeigh)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/how-do-i-load-theme-javascript-first-before-loading-a-plugin-javascript/)
 * A plugin is causing my site menu to not function correctly. I found out that 
   it’s a js conflict between a plugin and the theme. I need both to work together.
 * Here is the link to the site [https://www.bmcr.org/site/](https://www.bmcr.org/site/)
 * Here is the page where the plugin uses a shortcode [https://www.bmcr.org/site/donations/](https://www.bmcr.org/site/donations/)
 * Notice that the 2nd link doesn’t load the menu correctly or it doesn’t function
   correctly.
 * Any help on this is very much appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Shawn Hooper](https://wordpress.org/support/users/shooper/)
 * (@shooper)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/how-do-i-load-theme-javascript-first-before-loading-a-plugin-javascript/#post-5340829)
 * Hi ceekeigh,
 * The menu on the 2nd link appears to be working correctly for me. Which browser
   are you using?
 * Have you determined which plugin is causing the conflict? Including that information
   in the pick would help us in providing you with a better answer.
 * Thanks.
    Shawn
 *  Thread Starter [ceekeigh](https://wordpress.org/support/users/ceekeigh/)
 * (@ceekeigh)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/how-do-i-load-theme-javascript-first-before-loading-a-plugin-javascript/#post-5340983)
 * Hi Shawn,
 * The second link loads the sub-menu but you can’t click any of the sub-menu as
   it disappears. I tried it on both Chrome and FF.
 * The plugin that causes the conflict is the Authorize.net for WordPress which 
   generates the form on the 2nd link.
 * Thanks.
 *  [Shawn Hooper](https://wordpress.org/support/users/shooper/)
 * (@shooper)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/how-do-i-load-theme-javascript-first-before-loading-a-plugin-javascript/#post-5340986)
 * Hi,
 * Ok, here’s something for you to look at.
 * The donations page (which is the only page we’ve seen with the problem) is an
   SSL page. There are items not loading correctly on the page because they are 
   not being loaded with HTTPS URLs. Browsers don’t like it when you try to load
   a mix of secure and non-secure content.
 * Go through the page and replace any references to http:// resources with https://(
   or even remove the protocol from the URL like <img src=”//example.com/logo.png”/
   >.
 * Look for this in: images, stylesheet, javascript, embedded objects, etc.
 * Once everything is fixed, the browser should no longer warn about the page being
   partially secure. I have a feeling something here might be the root of the problem
   you’re encountering.
 * Hope I explained that well enough…. if not, let me know.
 * shawn

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How do I load theme javascript first before loading a plugin javascript’
is closed to new replies.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [js](https://wordpress.org/support/topic-tag/js/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Shawn Hooper](https://wordpress.org/support/users/shooper/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/how-do-i-load-theme-javascript-first-before-loading-a-plugin-javascript/#post-5340986)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
