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

Rethink http mojo life refresh #468

Closed
abelsromero opened this issue Jul 20, 2020 · 1 comment
Closed

Rethink http mojo life refresh #468

abelsromero opened this issue Jul 20, 2020 · 1 comment
Milestone

Comments

@abelsromero
Copy link
Member

abelsromero commented Jul 20, 2020

Current implementation injects the following at the end of the HTML.

<script>setTimeout(\"location.reload(true);\"," + autoReloadInterval + ");</script>

It works, but the full reload means the the page flickers and and the cursor is moved to the beggining.

I have a prototype solving these issues working with https://livejs.com/. But other options like https://livereload.com/ are also interesting.
The problem of the latest however, is that required a more complex protocol implementation, livejs only requires support for HEAD HTTP method.

@abelsromero
Copy link
Member Author

A more serious WIP branch: https://github.com/abelsromero/asciidoctor-maven-plugin/tree/feature/468/complete-http-life-refresh.

Currently working with https://livejs.com/, there's obviously a delay due to polling. But is not that bad, and better than what we had before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant