ifvisible.js
Crossbrowser & lightweight way to check if user is looking at the page or interacting with it.
File Explorer
Download Latest Version (.zip)- ci.yml
- FUNDING.yml
- settings.json
- .nojekyll
- ifvisible.js
- ifvisible.js.map
- index.html
- EventEmitter.test.ts
- ifvisible.test.ts
- ssr.test.ts
- Timer.test.ts
- consts.ts
- EventEmitter.ts
- ifvisible.ts
- main.ts
- Timer.ts
- version.ts
- .gitignore
- .npmignore
- eslint.config.mjs
- jsr.json
- LICENSE
- package.json
- pnpm-lock.yaml
- README.md
- tsconfig.json
- tsup.config.ts
- vitest.config.ts
π Installation Guide
1. Get the code
git clone https://github.com/serkanyersen/ifvisible.js
Downloads the entire project code from GitHub to your computer.
cd ifvisible.js
Moves into the project folder you just downloaded.
2. Node.js
Easy RecommendedPrerequisites
npm install
Downloads and installs the libraries listed in package.json.
npm start
Starts the development/run server.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
// repository documentation
Was this content helpful?
(0 ratings)
