browser feature detection with jQuery.support

In Molokoloco | 22:11 - 24 Nov 2010

Shared by molokoloco

Good idea :)

“Rather than using $.browser to detect the current user agent and alter the page presentation based on which browser is running, it is a good practice to perform feature detection. This means that prior to executing code which relies on a browser feature, we test to ensure that the feature works properly.

To make this process simpler, jQuery performs many such tests and makes the results available to us as properties of the jQuery.support object. The values of all the support properties are determined using feature detection (and do not use any form of browser sniffing).”

http://api.jquery.com/jQuery.support/

https://gist.github.com/556448

Tags :
 

Home made artworks

MyBookReadR | The RSS Wall | Carousel slider | Fast web start | Try it :)
My latest sources and sheets :
Github sources | Personnal wiki | jsFiddle example | WebDev bookmark

RSS Code tooltips updates

  • An error has occurred; the feed is probably down. Try again later.

RSS Molokoloco's JS fiddles

Recent Comments