Title: some inline scripts not moved
Last modified: August 30, 2016

---

# some inline scripts not moved

 *  Resolved [Steven Vachon](https://wordpress.org/support/users/prometh/)
 * (@prometh)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/some-inline-scripts-not-moved/)
 * I can understand why some may not move, such as those hardcoded without the use
   of `enqueue_script`, but I am seeing emoji settings in `<head>`, which is a standard
   WordPress thing.
 * [https://wordpress.org/plugins/scripts-to-footerphp/](https://wordpress.org/plugins/scripts-to-footerphp/)

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

 *  Plugin Author [Joshua David Nelson](https://wordpress.org/support/users/joshuadnelson/)
 * (@joshuadnelson)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/some-inline-scripts-not-moved/#post-6788203)
 * That would definitely be intuitive! Emoji scripts are relatively new ([WP 4.2](https://wordpress.org/news/2015/04/powell/)).
 * Those scripts are not enqueued with other scripts, but actually hooked into various
   other hooks to dynamically load the emoji scripts.
 * There’s a [plugin to disable them](https://wordpress.org/plugins/disable-emojis/),
   or [this code](http://gregrickaby.com/remove-wordpress-emoji/) works too.
 * Because the scripts are dynamically loaded, it shouldn’t be render-blocking or
   cause too much of a drag on the page speed, but that plugin works for removing
   them.
 *  Plugin Author [Joshua David Nelson](https://wordpress.org/support/users/joshuadnelson/)
 * (@joshuadnelson)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/some-inline-scripts-not-moved/#post-6788368)
 * I could certainly add an option to disable or move these scripts (if thats helpful
   and they still work in the footer as expected), if there’s interest in that, 
   but currently the plugin only moves scripts that are enqueued.
 *  Thread Starter [Steven Vachon](https://wordpress.org/support/users/prometh/)
 * (@prometh)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/some-inline-scripts-not-moved/#post-6788370)
 * If adding such a feature makes sense to you and to its users, then I’m all for
   it. I’m not too concerned with emoji specifically, but any similar inline scripts
   that can be moved out of the document header.
 *  Plugin Author [Joshua David Nelson](https://wordpress.org/support/users/joshuadnelson/)
 * (@joshuadnelson)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/some-inline-scripts-not-moved/#post-6788442)
 * Ah, sure. The issue with inline scripts is that they are usually hooked into `
   wp_head`, which would requiring knowing the function name that generates the 
   code and the priority it is hooked in at, as well. That’s something that has 
   to be done custom for the specific site and can’t be easily done dynamically 
   by a plugin like this one.
 * Hope that helps.
 * Joshua
 *  Thread Starter [Steven Vachon](https://wordpress.org/support/users/prometh/)
 * (@prometh)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/some-inline-scripts-not-moved/#post-6788445)
 * Yeah, I’d figured as such. Thanks for all the info! I’ll just remove them myself
   in that case.

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

The topic ‘some inline scripts not moved’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/scripts-to-footerphp_fcfefd.svg)
 * [Scripts To Footer](https://wordpress.org/plugins/scripts-to-footerphp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/scripts-to-footerphp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/scripts-to-footerphp/)
 * [Active Topics](https://wordpress.org/support/plugin/scripts-to-footerphp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/scripts-to-footerphp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/scripts-to-footerphp/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Steven Vachon](https://wordpress.org/support/users/prometh/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/some-inline-scripts-not-moved/#post-6788445)
 * Status: resolved