ajax.php and functions php heartbeat help

does anyone had to stop the wp-admin/admin-ajax.php script,
I installed the heartbeat.php plugin,
but it sees that I have to script my function.php theme file too.

I am looking into a way how to stop the script from overuse.