Rate-limit your function calls to sync with your browser's draws