diff --git a/README.md b/README.md index bd81532..db3fc86 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ I couldn't do detection on the back-end, because the entire site was cached and So I resorted to UA sniffing. -I tried to keep the script small (**currently ~1.3k bytes, minified**) and simple, because it would need to execute in the `
`, which is generally a bad idea, since JS blocks downloading and rendering of anything else while it parses and executes. In the case of mobile redirection, I don't mind so much, because I want to start the redirect as soon as possible, before the device has a chance to start downloading and rendering stuff. For non-mobile platforms, the script should execute fast, so the browser can quickly get back to downloading and rendering. +I tried to keep the script small (**currently ~1.4k bytes, minified**) and simple, because it would need to execute in the ``, which is generally a bad idea, since JS blocks downloading and rendering of anything else while it parses and executes. In the case of mobile redirection, I don't mind so much, because I want to start the redirect as soon as possible, before the device has a chance to start downloading and rendering stuff. For non-mobile platforms, the script should execute fast, so the browser can quickly get back to downloading and rendering. ## How it works @@ -75,7 +75,7 @@ The following properies of the `isMobile` object will either be `true` or `false ## Example Usage -I include the minified version of the script, inline, and at the top of the ``. Cellular connections tend to suck, so it would be wasteful overhead to open another connection, just to download <1kb of JS: +I include the minified version of the script, inline, and at the top of the ``. Cellular connections tend to suck, so it would be wasteful overhead to open another connection, just to download ~1.4kb of JS: ```html @@ -84,8 +84,8 @@ I include the minified version of the script, inline, and at the top of the `