drab 5.2.0 → 5.2.1
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/package.json +1 -1
- package/prefetch/index.d.ts +3 -2
- package/prefetch/index.js +2 -2
package/package.json
CHANGED
package/prefetch/index.d.ts
CHANGED
@@ -4,6 +4,7 @@ type Strategy = "hover" | "load" | "visible";
|
|
4
4
|
export type PrefetchAttributes = Attributes<Prefetch> & Partial<{
|
5
5
|
strategy: Strategy;
|
6
6
|
prerender: boolean;
|
7
|
+
url: string;
|
7
8
|
}>;
|
8
9
|
/**
|
9
10
|
* The `Prefetch` element can prefetch a url, or enhance the `HTMLAnchorElement` by loading
|
@@ -11,8 +12,8 @@ export type PrefetchAttributes = Attributes<Prefetch> & Partial<{
|
|
11
12
|
* multi-page applications (MPAs).
|
12
13
|
*
|
13
14
|
* If you are using a framework that already has a prefetch feature or uses a client side router,
|
14
|
-
* it is best to use the framework's feature instead of this element to
|
15
|
-
* accordance with the router.
|
15
|
+
* it is best to use the framework's feature instead of this element to ensure
|
16
|
+
* prefetching is working in accordance with the router.
|
16
17
|
*
|
17
18
|
* `strategy`
|
18
19
|
*
|
package/prefetch/index.js
CHANGED
@@ -5,8 +5,8 @@ import { Base } from "../base/index.js";
|
|
5
5
|
* multi-page applications (MPAs).
|
6
6
|
*
|
7
7
|
* If you are using a framework that already has a prefetch feature or uses a client side router,
|
8
|
-
* it is best to use the framework's feature instead of this element to
|
9
|
-
* accordance with the router.
|
8
|
+
* it is best to use the framework's feature instead of this element to ensure
|
9
|
+
* prefetching is working in accordance with the router.
|
10
10
|
*
|
11
11
|
* `strategy`
|
12
12
|
*
|