Hi @generosus and @johnbillion,
Thank you for the report and information provided.
In the plugin we do recommend disabling heartbeat for admin pages as this will drastically reduce the account CPU usage and requests spawned by the website while admin pages are opened. This is explained in the description on the WordPress Heartbeat Optimization section:
The WordPress Heartbeat API checks your post edit pages every 15 seconds and your dashboard and front end every 60 seconds, even in the absence of scheduled tasks. This can generate high CPU usage if you leave browser tabs in which you’re logged to WordPress opened for a longer period of time. You can modify these settings to reduce load.
When the heartbeat is disabled for admin pages all scripts depending on it there will not be able to triger it in order to reduce the load.
Still it is up to the end user to deside wheather if the heartbeat will be disabled or it’s execution time frame will be changed.
Now about the suggested solution above. First of all, thanks to @generosus for the report and that a solution was suggested as well.
The solution applied in the the WP Rocket plugin – they are replacing the heartbeat script with an empty JS file. The depending scripts still can not use heartbeat functionality and simply the big red warning is being hidden by this.
It is normal that if I disable the WordPress Heartbeat for admin pages this will prevent some scripts of using it. That is why it is being disabled. And it is also normal that QM will report there is a dependency which is not available. So it is up to the user to decide wheather to leave it enabled or not.
Best Regards,
Elena