I keep my internet off most of the day (via kernel firewall). Have a command that gives me a few minutes of internet so I can look up docs, then shuts everything back down.
If you're on a Mac then i can recommend Dash app for offline docs libraries.
For me it's completely different experience to code offline (very enjoyable). More thinking involved - less Google/SO.