Quantcast
Channel: Topic Tag: footer | WordPress.org
Viewing all articles
Browse latest Browse all 13572

Joshua David Nelson on "$wp_scripts->add_data($handle, 'group', 1) doesn't move scripts to footer"

$
0
0

The bulk of the work is the second remove_action, remove wp_print_head_scripts stops the scripts from being printed in the header. The way the scripts are called and printed if they are not printed in the header they will be printed in the footer instead. The other two remove_actions are there to insure no scripts slide through.

Check out wp-includes/script-loader.php.


Viewing all articles
Browse latest Browse all 13572