From a6f3153c76a26f1253219a670edc2a21411c6625 Mon Sep 17 00:00:00 2001 From: Evandro Leopoldino Goncalves Date: Wed, 5 Oct 2016 17:07:04 -0300 Subject: [PATCH] update readme --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index db64ad4..17ab7c0 100644 --- a/README.md +++ b/README.md @@ -41,12 +41,15 @@ Then you need to call the `pageAccelerator` function, such as the example bellow pageAccelerator(); ``` -`pageAccelerator` can also receive a callback as a parameter - this callback will be called whenever a new page has loaded. - Just call it and pageAccelerator was already following the web application links. For links that you don't want to be followed, you need simply add `data-pageAccelerator="false"`. +## Parameters +`pageAccelerator` can also receive an object as a parameter with the following options: +* **beforeLoading** function: Will be called whenever a new page was requested by a click or the browser back +* **afterLoading** function: Will be called whenever a new page has been loaded + ## Team pageAccelerator was made with love by a bunch of [awesome contributors](https://github.com/EasyFood/pageAccelerator/graphs/contributors).