Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When auto refresh is disabled, a timeout is still set #11

Open
freeranger opened this issue Mar 6, 2017 · 0 comments
Open

When auto refresh is disabled, a timeout is still set #11

freeranger opened this issue Mar 6, 2017 · 0 comments

Comments

@freeranger
Copy link

It's only a small performance thing, but whether auto refresh is enabled or disabled, setTimeout(refresh, 1000); is still called every second.

There is no need to do this if auto refresh is disabled. Something along the lines of:

    if (reload) {
        setTimeout(refresh, 1000);
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant