{
  "meta": {
    "canonicalUrl": "https://timetostable.com/feature/online",
    "bcdVersion": "8.1.11",
    "webFeaturesVersion": "3.48.0"
  },
  "kind": "web-feature",
  "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
      }
    }
  },
  "relatedBcdFeatures": [
    {
      "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"
          ]
        }
      ]
    },
    {
      "id": "api.Window.offline_event",
      "cat": "api",
      "mdn": "API/Window/offline_event",
      "spec": "https://html.spec.whatwg.org/multipage/indices.html#event-offline",
      "st": 1,
      "wf": "online",
      "bl": "high",
      "bld": 16645,
      "s": {
        "chrome": {
          "v": "3",
          "d": 14502
        },
        "firefox": {
          "v": "9",
          "d": 15328
        },
        "safari": {
          "v": "4",
          "d": 14403
        },
        "edge": {
          "v": "12",
          "d": 16645
        },
        "chrome_android": {
          "v": "18",
          "d": 15518
        },
        "firefox_android": {
          "v": "9",
          "d": 15329
        },
        "safari_ios": {
          "v": "3",
          "d": 14412
        },
        "webview_android": {
          "v": "4.4",
          "d": 16048
        },
        "webview_ios": {
          "v": "3",
          "d": 14412
        },
        "samsunginternet_android": {
          "v": "1.0",
          "d": 15822
        },
        "opera": {
          "v": "15",
          "d": 15888
        },
        "opera_android": {
          "v": "14",
          "d": 15846
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        },
        "ie": {
          "v": "9",
          "d": 15047
        }
      }
    },
    {
      "id": "api.Window.online_event",
      "cat": "api",
      "mdn": "API/Window/online_event",
      "spec": "https://html.spec.whatwg.org/multipage/indices.html#event-online",
      "st": 1,
      "wf": "online",
      "bl": "high",
      "bld": 16645,
      "s": {
        "chrome": {
          "v": "3",
          "d": 14502
        },
        "firefox": {
          "v": "9",
          "d": 15328
        },
        "safari": {
          "v": "4",
          "d": 14403
        },
        "edge": {
          "v": "12",
          "d": 16645
        },
        "chrome_android": {
          "v": "18",
          "d": 15518
        },
        "firefox_android": {
          "v": "9",
          "d": 15329
        },
        "safari_ios": {
          "v": "3",
          "d": 14412
        },
        "webview_android": {
          "v": "4.4",
          "d": 16048
        },
        "webview_ios": {
          "v": "3",
          "d": 14412
        },
        "samsunginternet_android": {
          "v": "1.0",
          "d": 15822
        },
        "opera": {
          "v": "15",
          "d": 15888
        },
        "opera_android": {
          "v": "14",
          "d": 15846
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        },
        "ie": {
          "v": "9",
          "d": 15047
        }
      }
    },
    {
      "id": "api.WorkerGlobalScope.offline_event",
      "cat": "api",
      "mdn": "API/WorkerGlobalScope/offline_event",
      "spec": "https://html.spec.whatwg.org/multipage/workers.html#handler-workerglobalscope-onoffline",
      "st": 1,
      "wf": "online",
      "bl": "high",
      "bld": 16645,
      "s": {
        "firefox": {
          "v": "29",
          "d": 16189
        },
        "safari": {
          "v": "8",
          "d": 16359
        },
        "firefox_android": {
          "v": "29",
          "d": 16189
        },
        "safari_ios": {
          "v": "8",
          "d": 16330
        },
        "webview_ios": {
          "v": "8",
          "d": 16330
        }
      }
    },
    {
      "id": "api.WorkerGlobalScope.online_event",
      "cat": "api",
      "mdn": "API/WorkerGlobalScope/online_event",
      "spec": "https://html.spec.whatwg.org/multipage/workers.html#handler-workerglobalscope-ononline",
      "st": 1,
      "wf": "online",
      "bl": "high",
      "bld": 16645,
      "s": {
        "firefox": {
          "v": "29",
          "d": 16189
        },
        "safari": {
          "v": "8",
          "d": 16359
        },
        "firefox_android": {
          "v": "29",
          "d": 16189
        },
        "safari_ios": {
          "v": "8",
          "d": 16330
        },
        "webview_ios": {
          "v": "8",
          "d": 16330
        }
      }
    },
    {
      "id": "api.WorkerNavigator.onLine",
      "cat": "api",
      "mdn": "API/WorkerNavigator/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": "4",
          "d": 14634
        },
        "firefox": {
          "v": "3.5",
          "d": 14425
        },
        "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": "5",
          "d": 15259
        },
        "webview_android": {
          "p": [
            "4.4",
            16048
          ]
        },
        "webview_ios": {
          "v": "5",
          "d": 15259
        },
        "samsunginternet_android": {
          "v": "1.0",
          "d": 15822
        },
        "opera": {
          "v": "10.6",
          "d": 14791
        },
        "opera_android": {
          "v": "11",
          "d": 15055
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        },
        "ie": {
          "v": "10",
          "d": 15639
        }
      },
      "notes": [
        {
          "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"
          ]
        }
      ]
    }
  ]
}