Skip to content

Commit

Permalink
Updated browser disclaimer #89 (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne-martin authored Jun 11, 2020
1 parent ea0cc11 commit 928e3dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,11 @@ Type definitions are included in this library and exposed via:
import { DeviceDetectorResult, DeviceDetectorOptions } from "device-detector-js";
```

## Browser
## ⚠️ Browser Environment

Even though this library can run in the browser, **it is strongly advised against doing so**, unless you are not concerned with performance. Keep in mind that using this library in browser-side code means sending around 432 KB of Regex rules and 144 KB of javascript (uncompressed and unminified), which may result in a poor user experience for people with a slow Internet connection.

You may experience inconsistencies when running this library in a browser environment, as some browsers like Safari do not yet support lookbehind syntax.

## What device-detector-js is able to detect

Expand Down

0 comments on commit 928e3dd

Please sign in to comment.