• Resolved Makis

    (@makesites)


    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

    (@muneeb)

    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.