Title: Is using wp_enqueue_script necessary?
Last modified: August 30, 2016

---

# Is using wp_enqueue_script necessary?

 *  [karl53](https://wordpress.org/support/users/karl53/)
 * (@karl53)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/is-using-wp_enqueue_script-necessary/)
 * Is it necessary to either register or to load scripts using `wp_enqueue_script()`
   or would there otherwise be an advantage to using `wp_enqueue_script()` if the
   scripts are all proprietary (no chance of conflict)?
 * The current technique I’m using is to load these scripts in the page footer. 
   The main page template loads the appropriate footer which, in turn, loads the
   required JavaScript by passing the footer’s slug to the `get_footer()` function.
 * I can detect no problems with this approach.
 * (I’ve read some of the answers on this forum about loading specific JavaScript
   files on specific pages and all the answers seem to make it unnecessarily complex.)
 * Thank you.

The topic ‘Is using wp_enqueue_script necessary?’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [karl53](https://wordpress.org/support/users/karl53/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/is-using-wp_enqueue_script-necessary/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
