transform/livereloadinject: Add defer to livereload script tag
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 31 Jan 2020 07:15:22 +0000 (08:15 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 31 Jan 2020 07:15:22 +0000 (08:15 +0100)
commitb3f0674b80a32425aeb4412f318c720391bbf773
tree35cdfe7c8dc354477dbed1952533c48c78a40809
parentef78a0d18a13098bcea1ff2b2d45d7388b8d41a0
transform/livereloadinject: Add defer to livereload script tag

In #6821 we moved the loading from end of body to head to make Turbolinks and similar work.

This commit adds a defer attribute to avoid page parse blocking.
transform/livereloadinject/livereloadinject.go
transform/livereloadinject/livereloadinject_test.go