Title: Order of script code
Last modified: August 22, 2016

---

# Order of script code

 *  Resolved [Makis](https://wordpress.org/support/users/makesites/)
 * (@makesites)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/order-of-script-code/)
 * As this plugin injects script code in the bottom of the page (using the “wp_footer”
   method), it is only reasonable to ensure it is placed last on the page, so web
   page optimisations like minification or moving jquery in the footer will not 
   break the plugin.
 * Please add a really high priority number (ex. 9999 ) in the add_action method
   that injects the code:
 *  add_action( $hook, $function_to_add, $priority, $accepted_args )

Viewing 1 replies (of 1 total)

 *  Plugin Author [Muneeb](https://wordpress.org/support/users/muneeb/)
 * (@muneeb)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/order-of-script-code/#post-5265746)
 * Hi Makis,
 * Thank you for your suggestion. I just added the high priority number in the add_action
   method also an update is made. Hopefully the plugin will work without any issues
   for users using minification or other cache plugins.

Viewing 1 replies (of 1 total)

The topic ‘Order of script code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/m-wp-popup_9f5753.svg)
 * [Popup | Custom Popup Builder](https://wordpress.org/plugins/m-wp-popup/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/m-wp-popup/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/m-wp-popup/)
 * [Active Topics](https://wordpress.org/support/plugin/m-wp-popup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/m-wp-popup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/m-wp-popup/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Muneeb](https://wordpress.org/support/users/muneeb/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/order-of-script-code/#post-5265746)
 * Status: resolved