jordansinger / Hook

Pull to refresh for the web
MIT License
1.6k stars 281 forks source link

Faster WebKit detection #7

Open niutech opened 11 years ago

niutech commented 11 years ago

Instead of adding a whole $.browser function, you could replace it with a one-liner:

/webkit/.test(navigator.userAgent.toLowerCase());

It will be faster and smaller in terms of bytes.

andreortiz82 commented 11 years ago

Does this fix the 20+ javascript errors referring to 'webkit'?