Title: Difference in Loading Javascript Libraries and Custom Scripts
Last modified: August 19, 2016

---

# Difference in Loading Javascript Libraries and Custom Scripts

 *  [filmoreha](https://wordpress.org/support/users/filmoreha/)
 * (@filmoreha)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/difference-in-loading-javascript-libraries-and-custom-scripts/)
 * Forgive me if this is in the wrong place. I’m looking at the Codex entry for 
   [wp_enqueue](http://codex.wordpress.org/Function_Reference/wp_enqueue_script#Load_a_script_from_your_theme.2C_excluding_admin_area)
   and trying to understand if there is a difference between how you load JS libraries
   vs your own custom script.
 * In the examples, there’s a function declaration for loading jquery or scriptaculous,
   however the example for loading a custom script lacks any function declaration.
 * Can anyone shed some light on this? I’m just now digging into WP theming, coming
   from Drupal and its quite a bit different.

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

 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/difference-in-loading-javascript-libraries-and-custom-scripts/#post-1871315)
 * Hi
 * Try this article for starters
    [http://smashingshare.com/2010/09/22/how-to-properly-add-javascript-files-to-your-wordpress-site/](http://smashingshare.com/2010/09/22/how-to-properly-add-javascript-files-to-your-wordpress-site/)
 * Maybe follow some of the links if you are still not clear
 *  Thread Starter [filmoreha](https://wordpress.org/support/users/filmoreha/)
 * (@filmoreha)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/difference-in-loading-javascript-libraries-and-custom-scripts/#post-1871334)
 * Thanks stvwif! That could not have been any clearer.

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

The topic ‘Difference in Loading Javascript Libraries and Custom Scripts’ is closed
to new replies.

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [wp_enqueue](https://wordpress.org/support/topic-tag/wp_enqueue/)

 * 2 replies
 * 2 participants
 * Last reply from: [filmoreha](https://wordpress.org/support/users/filmoreha/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/difference-in-loading-javascript-libraries-and-custom-scripts/#post-1871334)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
