File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ The above options are best for multi-page sites. Single-page apps have a few opt
44
44
45
45
* Call ` quicklink() ` once a navigation to a new route has completed
46
46
* Call ` quicklink() ` against a specific DOM element / component
47
- * Call ` quicklink{urls:[...]} ` with a custom set of URLs to prefetch
47
+ * Call ` quicklink( {urls:[...]}) ` with a custom set of URLs to prefetch
48
48
49
49
## Recipes
50
50
@@ -53,7 +53,7 @@ The above options are best for multi-page sites. Single-page apps have a few opt
53
53
Defaults to ` document ` otherwise.
54
54
55
55
``` js
56
- let elem = document .getElementById (' carousel' );
56
+ const elem = document .getElementById (' carousel' );
57
57
quicklink ({
58
58
el: elem
59
59
});
@@ -65,7 +65,7 @@ If you would prefer to provide a static list of URLs to be prefetched, instead o
65
65
66
66
``` js
67
67
quicklink ({
68
- urls: [' 2.html' ,' 4 .html' ]
68
+ urls: [' 2.html' ,' 3 .html' , ' 4.js ' ]
69
69
});
70
70
```
71
71
You can’t perform that action at this time.
0 commit comments