1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/lib
Arunoda Susiripala 14c86bef1d Introduce a simple prefetching solution (#957)
* Implement a very simple prefetching solution.

* Remove next-prefetcher.

* Require 'whatwg-fetch' only in the client.

* Use xhr in the code.

* Use a simple fetching solution.

* Fix 404 and xhr status issue.

* Move the prefetching implementation to next/router.

* Add deprecated warnning for next/prefetch

* Run only 2 parellel prefetching request at a time.

* Change xhr to jsonPageRes.

* Improve the prefetching logic.

* Add unit tests covering the Router.prefetch()

* Update examples to use the new syntax.

* Update docs.

* Use execOnce() to manage warn printing.

* Remove prefetcher building from the flyfile.js
Because, we no longer use it.
2017-02-15 14:22:22 +05:30
..
router Introduce a simple prefetching solution (#957) 2017-02-15 14:22:22 +05:30
app.js Use ErrorDebug component on error of react-hot-loader (#852) 2017-01-21 10:46:18 -08:00
css.js Only show deprecation when using next/css (#762) 2017-01-13 14:46:21 -08:00
error-debug.js tweak font sizes again 🙈 2017-01-21 18:12:27 -08:00
error.js Fix status messages on error (#1131) 2017-02-14 16:15:42 +01:00
eval-script.js remove gulpfile.js (#1092) 2017-02-12 17:32:45 +01:00
head.js Add default utf-8 charset. (#270) 2016-11-17 15:06:54 -08:00
link.js Introduce a simple prefetching solution (#957) 2017-02-15 14:22:22 +05:30
prefetch.js Introduce a simple prefetching solution (#957) 2017-02-15 14:22:22 +05:30
shallow-equals.js Added linting using standard (#27) 2016-10-16 17:00:17 -07:00
side-effect.js batch update head contents (#129) 2016-10-28 23:39:20 +09:00
utils.js Introduce a simple prefetching solution (#957) 2017-02-15 14:22:22 +05:30