Also used the following code, which also hides Alfie:
remove_action('wp_head', 'wp_print_scripts'); remove_action('wp_head', 'wp_print_head_scripts', 9); remove_action('wp_head', 'wp_enqueue_scripts', 1); add_action('wp_footer', 'wp_print_scripts', 5); add_action('wp_footer', 'wp_enqueue_scripts', 5); add_action('wp_footer', 'wp_print_head_scripts', 5);
Hope you’ll be helpful, as always.
Alfie WP Weather already IS async, so it doesn’t need any tweaking from this point of view. It will always load, without blocking the page. So maybe a possible fix is you should not include Alfie WP Weather in that plugin’s list of async loading scripts. As a side comment, an automated script for async loading the scripts is a bad idea, as there are many things to take into account when a page is drawn. Async should be done manually, because every site has its own needs, and loaded automatically if it doesn’t imply page elements drawing ( a manual tweak is needed to do so ).
The Alfie Team
I tried whitelisting 2 instances of both alfie-weather.js and alfie-weather.min.js, that are in the js folder, but it didn’t work for me.
Is there any script file I’m missing other than these two? Could you please look into the issue, if you don’t mind?