Skip to content

Commit dcfa1d9

Browse files
authored
Merge pull request #4 from peckadesign/readme-frontend
README Frontend section
2 parents 3ec0fd0 + 42598ac commit dcfa1d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: README.md

+4
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ or with custom message
5757
{control comments:async 'Show comments'}
5858
```
5959

60+
### Frontend
61+
62+
Without any javascript this trait will show only load button. With simple script you can automatically load all asynchronous components on page load using nette ajax extension `src/assets/async.nette.ajax.js`. Alternatively you can implement your own handling, e.g. component loading while scrolling through page. This is handy if you have long pages. You do not need to wait till all data are loaded and you can show main data much faster. Additional data will be loaded depending on your JS implementation right after page load or on demand.
63+
6064
## Configuring
6165

6266
You can set default message and attributes used for loading link in `bootstrap.php`

0 commit comments

Comments
 (0)