I almost do it !!!
// Print script tags
$scripts = ('header' == $action) ? $this->header_scripts : $this->footer_scripts;
foreach ($scripts as $script_array)
{
if (0 < sizeof($script_array))
echo $this->get_minify_tag(implode(',', $script_array), 'script');
}
// Deferring
echo '<script src="' . plugin_dir_url( __FILE__ ) . 'js_deferred/lab.min.js"></script>' . "\r\n";
$to_deferring = implode(',', $script_array);
$scheme_str = is_ssl() && !is_admin() ? 'https://' : 'https://';
$path_and_deferring = apply_filters('bwp_get_minify_src', trailingslashit(str_replace(array('https://', 'https://'), $scheme_str, $this->options['input_minurl'])) . '?f=' . $to_deferring, $this->options['input_minurl']);
$do_deferring .= '<script>'.'$LAB'.'.script("'.$path_and_deferring.'").wait();</script>';
echo $do_deferring;
// End of deferring
do_action('bwp_minify_after_' . $action . '_scripts');
}
just one thing : the script is also loading in header lol !!!
in footer it’s good :
<script src="https://mysite.com/wp-content/plugins/bwp-minify/includes/js_deferred/lab.min.js"></script>
<script>
$LAB
.script("https://mysite.com/wp-content/plugins/bwp-minify/min/?f=wp-includes/js/jquery/jquery.js,ppi/wp-includes/js/jquery/jquery-migrate.min.js,wp-content/themes/my_theme/js/plugins.min.js,wp-content/themes/my_theme/js/scripts.js).wait();
</script>
in header : (to remove)
<script src="https://mysite.com/wp-content/plugins/bwp-minify/includes/js_deferred/lab.min.js"></script>
<script>$LAB.script("https://mysite.com/wp-content/plugins/bwp-minify/min/?f=").wait();</script>
DAMMMM’N !