You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/components/async.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ end
54
54
55
55
### Hide_after
56
56
57
-
The `hide_after` option lets us define a timespan after which the component gets hidden.
57
+
The `hide_after` option lets us define a timespan in milliseconds after which the component gets hidden.
58
58
59
59
```ruby
60
60
async hide_after:1000do
@@ -103,7 +103,7 @@ end
103
103
```
104
104
105
105
#### delayed defer
106
-
`defer: 2000` means that the content of the `async` component gets requested within a separate GET request `2000ms` after initial page load is done.
106
+
`defer: 2000` means that the content of the `async` component gets requested within a separate GET request 2000 milliseconds after initial page load is done.
107
107
```ruby
108
108
async defer:2000do
109
109
div id:'my-div'do
@@ -290,7 +290,7 @@ end
290
290
291
291
### Example 4: Hide after show on event
292
292
293
-
On our example page, we wrap a simple timestamp in an async component and tell it to show up when the event `my_event` gets triggered and be hidden after 1000ms.
293
+
On our example page, we wrap a simple timestamp in an async component and tell it to show up when the event `my_event` gets triggered and be hidden after 1000 milliseconds.
0 commit comments