Skip to content

Commit 3ee17cc

Browse files
chore: make docs MDX-compatible, pt. 2 (#1725)
1 parent b9487d4 commit 3ee17cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rails/turbolinks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Async script loading can be done like this (starting with Shakapacker 8.2):
8484
<%= javascript_include_tag 'application', async: Rails.env.production? %>
8585
```
8686

87-
If you use `document.addEventListener("turbolinks:load", function() {...});` somewhere in your code, you will notice that Turbolinks 5 does not fire `turbolinks:load` on initial page load. A quick workaround for React on Rails <15 is to use `defer` instead of `async`:
87+
If you use `document.addEventListener("turbolinks:load", function() {...});` somewhere in your code, you will notice that Turbolinks 5 does not fire `turbolinks:load` on initial page load. A quick workaround for React on Rails earlier than 15 is to use `defer` instead of `async`:
8888

8989
```erb
9090
<%= javascript_include_tag 'application', defer: Rails.env.production? %>

0 commit comments

Comments
 (0)