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

Alternative to http-equiv="refresh" #125

Open
xaur opened this issue May 14, 2017 · 3 comments
Open

Alternative to http-equiv="refresh" #125

xaur opened this issue May 14, 2017 · 3 comments

Comments

@xaur
Copy link

xaur commented May 14, 2017

I disabled automatic reloading and Firefox and it keeps warning me everytime I visit voting.decred.org.

Firefox prevented this page from automatically reloading.

I think <meta http-equiv="refresh" content="300" > is to blame, as opposed to more common javascript-based UI refresh. For long time I have not seen this warning during my normal surfing.

If I'm the only one with this problem please just close this issue.

@alexlyp
Copy link
Member

alexlyp commented May 18, 2017

I'm open to alternatives, although with our current architecture (no js blob running via angular etc) I'm not sure there is another way to refresh the page otherwise.

@xaur
Copy link
Author

xaur commented May 31, 2017

A small javascript snippet would do I think. Set a timer, make request, update couple elements. The page is rather simple right now, although I'm not aware if bigger things are planned for it.

Thinking about timers, the numbers on the page can only change when new block is mined, is that correct?

If yes, only one update in 5 minutes is necessary.

@dajohi
Copy link
Member

dajohi commented Feb 1, 2019

websocket ntfn that a new block has been received and to refresh?

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

3 participants