Title: enqueing vs. linking javascript
Last modified: August 22, 2016

---

# enqueing vs. linking javascript

 *  Resolved [trial3rror](https://wordpress.org/support/users/trial_error/)
 * (@trial_error)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/enqueing-vs-linking-javascript/)
 * Hi,
    I am just getting started in javascript/jquery (so I don’t master the terminology
   and intricacies yet) and wonder if someone can explain in simple language why
   it is regarded “proper” to enqueue javascript files in functions.php rather than
   just adding the link to header.php?
 * Thanks!

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

 *  [Tapan Kumer Das](https://wordpress.org/support/users/tapan29bd/)
 * (@tapan29bd)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/enqueing-vs-linking-javascript/#post-5951453)
 * Hi trial3rror,
 * Here is a nice article which explains why you should not use direct js link your
   header.php
 * [http://pressing-matters.io/the-definitive-guide-to-adding-javascript-css-to-wordpress/](http://pressing-matters.io/the-definitive-guide-to-adding-javascript-css-to-wordpress/)
 *  Thread Starter [trial3rror](https://wordpress.org/support/users/trial_error/)
 * (@trial_error)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/enqueing-vs-linking-javascript/#post-5951524)
 * Thanks!

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

The topic ‘enqueing vs. linking javascript’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [trial3rror](https://wordpress.org/support/users/trial_error/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/enqueing-vs-linking-javascript/#post-5951524)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
