• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zeit / next.js / 324
52%

Build:
DEFAULT BRANCH: master
Ran 15 Dec 2016 07:15PM UTC
Jobs 2
Files 24
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
324

push

travis-ci

rauchg
Prefetch pages with Service Workers (#375)

* Register the service worker.

* Update prefetcher code to do prefetching.

* Implement the core prefetching API.
support "import <Link>, { prefetch } from 'next/prefetch'"

* Implement a better communication system with the service worker.

* Add a separate example for prefetching

* Fix some typos.

* Initiate service worker support even prefetching is not used.
This is pretty important since initiating will reset the cache.
If we don't do this, it's possible to have old cached resources
after the user decided to remove all of the prefetching logic.
In this case, even the page didn't prefetch it'll use the
previously cached pages. That because of there might be a already running
service worker.

* Use url module to get pathname.

* Move prefetcher code to the client from pages
Now we also do a webpack build for the prefetcher code.

* Add prefetching docs to the README.md

* Fix some typo.

* Register service worker only if asked to prefetch
We also clean the cache always, even we initialize
the service worker or not.

54 of 54 new or added lines in 1 file covered. (100.0%)

195 of 570 relevant lines covered (34.21%)

3.5 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
51
100.0
lib/prefetch.js
Jobs
ID Job ID Ran Files Coverage
1 324.1 15 Dec 2016 07:15PM UTC 0
34.21
Travis Job 324.1
2 324.2 15 Dec 2016 07:16PM UTC 0
34.21
Travis Job 324.2
Source Files on build 324
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #324
  • 36abdc77 on github
  • Prev Build on master (#321)
  • Next Build on master (#329)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc