Title: Enqueue script instead of echoing in header
Last modified: March 1, 2017

---

# Enqueue script instead of echoing in header

 *  [kebarriere](https://wordpress.org/support/users/kebarriere/)
 * (@kebarriere)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/enqueue-script-instead-of-echoing-in-header/)
 * Hi!
 * Your WordPress plugin works perfectly, but I’m working on optimizing my site’s
   performance and I noticed that you don’t enqueue the script. Since it weighs 
   a good 50 kb, I’d like to be able to move it to the footer as I do with other
   JS.
 * Thanks!

The topic ‘Enqueue script instead of echoing in header’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-nicescroll.svg)
 * [WP-Nicescroll](https://wordpress.org/plugins/wp-nicescroll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-nicescroll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-nicescroll/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-nicescroll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-nicescroll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-nicescroll/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [kebarriere](https://wordpress.org/support/users/kebarriere/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/enqueue-script-instead-of-echoing-in-header/)
 * Status: not a support question