Skip to content

Commit 38de0ef

Browse files
committed
Async docs: explicitly mention that the timespans used are in milliseconds
1 parent d25399b commit 38de0ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/components/async.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ end
5454

5555
### Hide_after
5656

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.
5858

5959
```ruby
6060
async hide_after: 1000 do
@@ -103,7 +103,7 @@ end
103103
```
104104

105105
#### 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.
107107
```ruby
108108
async defer: 2000 do
109109
div id: 'my-div' do
@@ -290,7 +290,7 @@ end
290290

291291
### Example 4: Hide after show on event
292292

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.
294294

295295
```ruby
296296
class ExamplePage < Matestack::Ui::Page

0 commit comments

Comments
 (0)