Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
slawomir-jedlikowski committed Oct 30, 2018
1 parent 5a661b6 commit db00c79
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,16 @@ Additional event is emitted, when user scrolls up - it allows you to refresh ele
// your callback for reloading element, i.e.
reloadContent($element);
});
AdRefresher.init($element);
// default options
var options = {
loadingThreshold: 300,
reloadingThreshold: 150,
useReloading: true // if set to false, it will disable reload event
}
// second parameter is optional
AdRefresher.init($element, options);
```

## Development
Expand Down

0 comments on commit db00c79

Please sign in to comment.