{
  "meta": {
    "canonicalUrl": "https://timetostable.com/feature/api.Navigator.onLine",
    "bcdVersion": "8.1.11",
    "webFeaturesVersion": "3.48.0"
  },
  "kind": "bcd",
  "bcdFeature": {
    "id": "api.Navigator.onLine",
    "cat": "api",
    "mdn": "API/Navigator/onLine",
    "spec": "https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-online-dev",
    "st": 1,
    "wf": "online",
    "bl": "high",
    "bld": 16645,
    "s": {
      "chrome": {
        "v": "2",
        "d": 14385
      },
      "firefox": {
        "v": "1.5",
        "d": 13116
      },
      "safari": {
        "v": "4",
        "d": 14403
      },
      "edge": {
        "v": "12",
        "d": 16645
      },
      "chrome_android": {
        "v": "18",
        "d": 15518
      },
      "firefox_android": {
        "v": "4",
        "d": 15062
      },
      "safari_ios": {
        "v": "3.2",
        "d": 14702
      },
      "webview_android": {
        "p": [
          "4.4",
          16048
        ]
      },
      "webview_ios": {
        "v": "3.2",
        "d": 14702
      },
      "samsunginternet_android": {
        "v": "1.0",
        "d": 15822
      },
      "opera": {
        "v": "3",
        "d": 10196
      },
      "opera_android": {
        "v": "10.1",
        "d": 14922
      },
      "oculus": {
        "v": "5.0",
        "d": 17713
      },
      "ie": {
        "v": "4",
        "d": 10134
      }
    },
    "notes": [
      {
        "t": "Earlier versions of Chrome incorrectly return true when a tab is first opened, but it starts reporting the correct connectivity status after the first network event. Windows: 11, macOS: 14, ChromeOS: 13, Linux: Always returns <code>true</code>. For history, see <a href=\"https://crbug.com/40530968\">bug 40530968</a>.",
        "b": [
          "chrome"
        ]
      },
      {
        "t": "Since Firefox 4 the browser returns <code>true</code> when 'Work Offline' mode is disabled and <code>false</code> when it is enabled, regardless of actual connectivity. Since Firefox 41, on OS X and Windows, the returned values follow the actual network connectivity, unless 'Work offline' mode is selected (where it will always return <code>false</code>).",
        "b": [
          "firefox"
        ]
      },
      {
        "t": "Can incorrectly return true, see <a href=\"https://crbug.com/41369933\">bug 41369933</a>.",
        "b": [
          "webview_android"
        ]
      },
      {
        "t": "From Opera 11.1 until Opera 12.1, the browser returns <code>true</code> when 'Work Offline' mode is disabled and <code>false</code> when it is enabled, regardless of actual connectivity.",
        "b": [
          "opera",
          "opera_android"
        ]
      },
      {
        "t": "in Internet Explorer 8 'online' and 'offline' events are raised on the <code>document.body</code>; under IE 9 they are raised on both <code>document.body</code> and <code>window</code>.",
        "b": [
          "ie"
        ]
      }
    ]
  },
  "webFeature": {
    "id": "online",
    "name": "Online status",
    "description": "The navigator.onLine property is a boolean for whether the browser is connected to some network (though not necessarily the internet). The online and offline events fire when the connection state changes.",
    "group": "other",
    "groupName": "other",
    "spec": "https://html.spec.whatwg.org/multipage/system-state.html#navigator.online",
    "baseline": "high",
    "baselineLowDate": "2015-07-29",
    "baselineLowDay": 16645,
    "baselineHighDate": "2018-01-29",
    "compatCount": 6,
    "cats": [
      "api"
    ],
    "compatKeysSample": [
      "api.Navigator.onLine",
      "api.Window.offline_event",
      "api.Window.online_event",
      "api.WorkerGlobalScope.offline_event",
      "api.WorkerGlobalScope.online_event",
      "api.WorkerNavigator.onLine"
    ],
    "s": {
      "chrome": {
        "v": "2",
        "d": 14385
      },
      "chrome_android": {
        "v": "18",
        "d": 15518
      },
      "edge": {
        "v": "12",
        "d": 16645
      },
      "firefox": {
        "v": "1.5",
        "d": 13116
      },
      "firefox_android": {
        "v": "4",
        "d": 15062
      },
      "safari": {
        "v": "4",
        "d": 14403
      },
      "safari_ios": {
        "v": "3.2",
        "d": 14702
      }
    }
  }
}