New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we implement prefetching not using Service Worker? #522
Comments
This is kind a untrue. See: http://caniuse.com/#feat=serviceworkers Anyway, our current focus is shipping 2.0 and the current prefetching solution is pretty neat for that. |
I noted here some ideas to broaden the support, namely using AppCache: #24 (comment) |
A principle that has served us well over the years is to provide support for all browsers, but optimizations for modern ones. Prefetching is an optimization. To invest more and more code into an optimization that will be deprecated (since all modern user agents support If you want, feel free to create your own userland prefetching module that exposes the same API as |
First of all, thanks for creating such an amazing tool! Next.js seems like a "dream framework" to me for building web apps, which "brings us the best of both worlds" (single page app and server side rendering).
To me the most important piece that helps Next.js fullfil its promise is the ability to prefetch all the components that the tags point to in a page.
According to the documentation this feature is implemented using Service Worker, a API that only supports Chrome and Firefox. This means a great portion of web users just can't take advantage of this great feature. I don't know if I miss something.
Can we implement prefetching using other kinds of techniques, which support all modern browsers, instead of using Service Worker?
The text was updated successfully, but these errors were encountered: