js.foresight 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -75,15 +75,6 @@ const unregister = ForesightManager.instance.register(
|
|
|
75
75
|
unregister()
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
-
## Real-World Benefits
|
|
79
|
-
|
|
80
|
-
- **Better Than Viewport Prefetching**: Only loads resources for elements the user is likely to interact with
|
|
81
|
-
- **Better Than Hover Prefetching**: Starts loading resources 80-150ms earlier than hover events
|
|
82
|
-
- **Improved Perceived Performance**: Interactions feel instant instead of slightly delayed
|
|
83
|
-
- **Reduced Server Load**: Minimizes unnecessary API calls and data fetching
|
|
84
|
-
|
|
85
|
-
In the following sections, you'll learn how to configure ForesightJS, debug interactions, and integrate it with popular frameworks.
|
|
86
|
-
|
|
87
78
|
## Configuration
|
|
88
79
|
|
|
89
80
|
[Docs](https://foresightjs.com/docs/config)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "js.foresight",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Predicts mouse trajectory to trigger actions as users approach elements, enabling anticipatory UI updates or pre-loading. Made with vanilla javascript and usable in every framework.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|