diff options
Diffstat (limited to 'transform/livereloadinject')
-rw-r--r-- | transform/livereloadinject/livereloadinject.go | 2 | ||||
-rw-r--r-- | transform/livereloadinject/livereloadinject_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/transform/livereloadinject/livereloadinject.go b/transform/livereloadinject/livereloadinject.go index 896dcab4e..bbafdff72 100644 --- a/transform/livereloadinject/livereloadinject.go +++ b/transform/livereloadinject/livereloadinject.go @@ -59,7 +59,7 @@ func New(port int) transform.Transformer { return err } - script := []byte(fmt.Sprintf(`<script src="/livereload.js?port=%d&mindelay=10&v=2" data-no-instant></script>`, port)) + script := []byte(fmt.Sprintf(`<script src="/livereload.js?port=%d&mindelay=10&v=2" data-no-instant defer></script>`, port)) i := idx if match.appendScript { diff --git a/transform/livereloadinject/livereloadinject_test.go b/transform/livereloadinject/livereloadinject_test.go index ea1b3aa65..690db31c2 100644 --- a/transform/livereloadinject/livereloadinject_test.go +++ b/transform/livereloadinject/livereloadinject_test.go @@ -25,7 +25,7 @@ import ( func TestLiveReloadInject(t *testing.T) { c := qt.New(t) - expectBase := `<script src="/livereload.js?port=1313&mindelay=10&v=2" data-no-instant></script>` + expectBase := `<script src="/livereload.js?port=1313&mindelay=10&v=2" data-no-instant defer></script>` apply := func(s string) string { out := new(bytes.Buffer) in := strings.NewReader(s) |