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

transform/livereloadinject: Inject livereload script right after head if possible #6822

Merged
merged 1 commit into from
Jan 29, 2020

Conversation

bep
Copy link
Member

@bep bep commented Jan 29, 2020

This makes it work with Turbolinks.

Fixes #6821

@bep
Copy link
Member Author

bep commented Jan 29, 2020

Anyone of you web gurus see any downsides to this? @regisphilibert @onedrawingperday @moorereason ?

@moorereason
Copy link
Contributor

I don't see any problems here, but it would be helpful to have a comment in New explaining why the logic is necessary.

… if possible

We used to insert the livereload script right before the closing body.

This dord  not work when combined with tools such as Turbolinks.

This commit changes it So we try to inject the script as early as possible.

Fixes gohugoio#6821
@bep bep force-pushed the live-reload-turbolinks branch 2 times, most recently from 8736244 to d694d02 Compare January 29, 2020 18:43
@bep bep merged commit 8f08cdd into gohugoio:master Jan 29, 2020
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make livereload work with Turbolinks
2 participants