Title: Inline JS script moved on top
Last modified: February 27, 2023

---

# Inline JS script moved on top

 *  Resolved [pukos](https://wordpress.org/support/users/pukos/)
 * (@pukos)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/inline-script-moved-on-top/)
 * With last update  2.0.17 I noticed (at least) one of my inline script has moved
   on top.
 * I made all possible test on staging and production server to be sure to exclude
   other causes.
 * None of file optimization is enable. All cache flushed.
 * The only solution is disable “cache system” or the plugin at all
 * At given url you can check the console for error:
 * `Uncaught TypeError: Cannot read properties of null (reading 'appendChild')`
 * Because try to append to an element still not exist.
 * Obviously when the plugin is on footer, this error don’t happen.
    -  This topic was modified 3 years, 3 months ago by [pukos](https://wordpress.org/support/users/pukos/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finline-script-moved-on-top%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [adeelkhan](https://wordpress.org/support/users/adeelkhan/)
 * (@adeelkhan)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/inline-script-moved-on-top/#post-16512532)
 * As you mentioned optimization option not enabled please confirm what’s the option
   enable in Basic Option tab?
 *  Thread Starter [pukos](https://wordpress.org/support/users/pukos/)
 * (@pukos)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/inline-script-moved-on-top/#post-16512545)
 * Solved with Cloudways support. I had the same problem with previous version.
 * I had to completely remove and reinstall the plugin.
 *  Plugin Author [adeelkhan](https://wordpress.org/support/users/adeelkhan/)
 * (@adeelkhan)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/inline-script-moved-on-top/#post-16516520)
 * Its Great.

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

The topic ‘Inline JS script moved on top’ is closed to new replies.

 * ![](https://ps.w.org/breeze/assets/icon-256x256.gif?rev=3352595)
 * [Breeze Cache](https://wordpress.org/plugins/breeze/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/breeze/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/breeze/)
 * [Active Topics](https://wordpress.org/support/plugin/breeze/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/breeze/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/breeze/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [adeelkhan](https://wordpress.org/support/users/adeelkhan/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/inline-script-moved-on-top/#post-16516520)
 * Status: resolved