Hi,
When using Announcer, I get an error that jQuery is not defined. This is because the jquery script has the defer attribute, but the announcer script does not (so the announcer script runs before jquery is registered).
This can be fixed by changing line 26 of announcer/includes/display.php to
php
wp_enqueue_script( 'announcer-js', ANCR_URL . 'public/js/script.js', array( 'jquery' ), ANCR_VERSION, array( 'strategy' => 'defer' ) );
but this change will be overwritten when the plugin is updated.
I assume that the jquery script being deferred is caused by another plugin but I’m not certain which one.
Is there any chance that the announcer script can be deferred, or an option be made available to defer it? Or any other solution that also fixes the problem is very acceptable.