Title: Loading the inline scripts after enqueued footer scripts
Last modified: August 30, 2016

---

# Loading the inline scripts after enqueued footer scripts

 *  [Paul Stonier](https://wordpress.org/support/users/paulstonier/)
 * (@paulstonier)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/loading-the-inline-scripts-after-enqueued-footer-scripts/)
 * I want to load jQuery and all other scripts in the footer to avoid blocking rendering
   of content. I’m using the Autoptimize plugin to force jQuery and all other scripts
   to the footer concatenated. Everything seems fine except the inline calendar 
   script is loading before jQuery and breaking. What do I need to do to make this
   load after jQuery in the footer?
 * [https://wordpress.org/plugins/wp-fullcalendar/](https://wordpress.org/plugins/wp-fullcalendar/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/loading-the-inline-scripts-after-enqueued-footer-scripts/#post-6570272)
 * Hi Paul,
 * If you could ask Autoptimize where they add their optimizations, maybe we can
   help.
 * It may be the simple case of changing this line on wp-fullcalendar.php:
 * `add_action('wp_footer', array('WP_FullCalendar','footer_js'));`
 * to this:
 * `add_action('wp_footer', array('WP_FullCalendar','footer_js'), 1, 100000);`

Viewing 1 replies (of 1 total)

The topic ‘Loading the inline scripts after enqueued footer scripts’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-fullcalendar.svg)
 * [WP FullCalendar](https://wordpress.org/plugins/wp-fullcalendar/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fullcalendar/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fullcalendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fullcalendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fullcalendar/reviews/)

## Tags

 * [footer](https://wordpress.org/support/topic-tag/footer/)
 * [script](https://wordpress.org/support/topic-tag/script/)

 * 1 reply
 * 2 participants
 * Last reply from: [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/loading-the-inline-scripts-after-enqueued-footer-scripts/#post-6570272)
 * Status: not resolved