Skip to content

Commit 381d2dc

Browse files
committed
Add blog link to README
1 parent a68af75 commit 381d2dc

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
### Changed
11+
- README.md
12+
1013
## 1.0.3 - 2023-12-30
1114
### Added
1215
- Author, homepage, repository into package.json

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Truth is that on computer that is not running on battery power, the browser will
1010

1111
Here is where Smart-Timer comes to the rescue. It allows replacing RXJS `timer` and `interval` observables with `smartTimer` which has exactly the same API but thanks to Page Visibility API it will automatically prolong the intervals for you when the user has left the page for more than 15 seconds. And it will automatically emit once the user returns resulting in immediate refresh of the data. Of course you can configure the "hidden" interval manually or even to be the same as the standard one since for some requests, for example refreshing users auth token it is not desirable change the interval at all.
1212

13+
You can read about how the smart-timer was created in [this blog post](https://blog.purestorage.com/purely-technical/notes-from-a-hackathon-how-to-cut-down-web-requests-by-70/).
14+
1315
## Installation
1416

1517
You just need to install the package from [NPM](https://www.npmjs.com/package/@pstg/smart-timer):

0 commit comments

Comments
 (0)