Title: Why does WP include javascript in header?
Last modified: August 20, 2016

---

# Why does WP include javascript in header?

 *  [r3plicant](https://wordpress.org/support/users/r3plicant/)
 * (@r3plicant)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/why-does-wp-include-javascript-in-header/)
 * I thought it was best to include javascript immediately before </body>

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

 *  [Christine Rondeau](https://wordpress.org/support/users/crondeau/)
 * (@crondeau)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/why-does-wp-include-javascript-in-header/#post-2612204)
 * Opinions vary in that matter. Some people prefer the footer, others prefer the
   header. We’re humans, we all like different things. 🙂
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/why-does-wp-include-javascript-in-header/#post-2612213)
 * It also depends upon the javascript. Some scripts need to be placed in the head
   section of a page because the generation of the page’s content depends upon the
   javascript being pre-loaded.

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

The topic ‘Why does WP include javascript in header?’ is closed to new replies.

## Tags

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

 * 2 replies
 * 3 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/why-does-wp-include-javascript-in-header/#post-2612213)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
