https://github.com/mudafar/alz-predictor-prefetch-example
alz-predictor prefetch example build with React
https://github.com/mudafar/alz-predictor-prefetch-example
alz-predictor next-page predictive-prefetching prefetch react
Last synced: 3 months ago
JSON representation
alz-predictor prefetch example build with React
- Host: GitHub
- URL: https://github.com/mudafar/alz-predictor-prefetch-example
- Owner: mudafar
- Created: 2021-03-24T17:13:56.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-28T05:24:55.000Z (about 4 years ago)
- Last Synced: 2025-01-20T23:48:18.692Z (4 months ago)
- Topics: alz-predictor, next-page, predictive-prefetching, prefetch, react
- Language: JavaScript
- Homepage: https://mudafar.github.io/alz-predictor-prefetch-example/
- Size: 1.31 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prefetch example app using alz-predictor
A simple react demo app that learns user navigation behavior/sequence, predict and prefetch resources for next user action.## Description
1. To train alz-predictor, navigate through the provided links:
- Home
- Users
- Posts
- Comments
- Todos2. To get prediction, simply reload current app page, an alert will show the current prediction (with highest probably). If the prediction is greater than `PROBABILITY_THRESHOLD (0.7)` , then it'll prefetch data for that link.
3. This app use `localStorage` to persist training. A `Reset Training` button is provided.
## Usage
### `npm start`
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.