chrome: disable internet connection or work offline
Solution 1:
offline
mode is added to Chrome v45.
Developer tools -> Network tab -> Choose "offline" from selectbox.
Solution 2:
Offline switcher is a new handy Chrome Extension to do the job quickly. You can toogle to switch between offline and online mode.
The add-on is simple, just to set Chrome proxy to an un-existing point.
Solution 3:
Under the network tab, go to the THrottling dropdown where you can select different speeds of web and even set it to be offline. This comes very handy when you are working with service workers and want to test your application in offline mode.
Refer to the latest answer: https://stackoverflow.com/a/32607960/2520254