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)
Viewing 1 replies (of 1 total)
- The topic ‘Order of script code’ is closed to new replies.