title: Detect support for transition with JavaScript
body: <p>I want to serve different javascript files depending on if browser supports CSS3 transition or not. Is there a better way to detect transition support than my code below?</p>
  
  <pre><code>window.onload = function () {
      var b = document.body.style;
      if(b.MozTransition=='' || b.WebkitTransition=='' || b.OTransition=='' || b.transition=='') {
          alert('supported');
      } else {
          alert('NOT supported')
      }
  }
  </code></pre>