-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [major] rewrite w/ new exports & options; - add `throttle` option - add `limit` option - export `prefetch` directly - export old `default` as `listen` method - remove `urls` option (temp?) - return early if no IO support - return `reset` function if okay * chore: remove `static-url-list` test * chore: update usage * golf: shave 4B ~ * fix: xbrowser throw on `set.size` getter * chore: shuffle "main" location * feat: add `onError` option for prefetch catch * fix: expand timeout * feat: allow `prefetch` to accept url[] list * fix: remove TODO notes * golf: always handle `prefetch` as array * chore: complete tests * chore: add `throttle` tests * chore: update docs * fix: separate listen() vs prefetch() callers * docs: format API docs differently (#1)
- Loading branch information
1 parent
d75188d
commit 4044de0
Showing
22 changed files
with
505 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,14 @@ | |
"name": "quicklink", | ||
"version": "1.0.1", | ||
"description": "Faster subsequent page-loads by prefetching in-viewport links during idle time", | ||
"main": "dist/quicklink.js", | ||
"repository": "https://github.com/GoogleChromeLabs/quicklink.git", | ||
"homepage": "https://github.com/GoogleChromeLabs/quicklink", | ||
"bugs": { | ||
"url": "https://github.com/GoogleChromeLabs/quicklink/issues" | ||
}, | ||
"author": "addyosmani <[email protected]>", | ||
"license": "Apache-2.0", | ||
"main": "dist/quicklink.js", | ||
"module": "dist/quicklink.mjs", | ||
"jsnext:main": "dist/quicklink.mjs", | ||
"umd:main": "dist/quicklink.umd.js", | ||
|
@@ -19,7 +19,7 @@ | |
"lint-fix": "eslint src/*.mjs test/*.js --fix demos/*.js", | ||
"start": "http-server .", | ||
"test": "yarn run build && mocha test/bootstrap.js --recursive test", | ||
"build": "microbundle src/index.mjs --no-sourcemap", | ||
"build": "microbundle src/index.mjs --no-sourcemap --external none", | ||
"prepare": "yarn run -s build", | ||
"bundlesize": "bundlesize", | ||
"changelog": "yarn conventional-changelog -i CHANGELOG.md -s -r 0", | ||
|
@@ -33,6 +33,9 @@ | |
"background", | ||
"speed" | ||
], | ||
"dependencies": { | ||
"throttles": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"babel-preset-env": "^1.7.0", | ||
"bundlesize": "^0.17.0", | ||
|
@@ -53,4 +56,4 @@ | |
"maxSize": "2 kB" | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.