title: Sharepoint 2013 Javascript object model IE compatibility
body: <p>I am trying to inject some JS code into a wiki page to allow LaTex markup to be rendered using the MathJax library. After a bit of playing around I realised that I needed to run the MathJax script when the page was NOT in edit mode. It would appear that the MS JS client library for SP2013 has a neat way of checking</p>
  
  <pre><code>var InEditMode = SP.Ribbon.PageState.Handlers.isInEditMode();
  
  if(!InEditMode){
  
   // load MathJax library from CDN
  }
  </code></pre>
  
  <p>This works great for recent versions of Chrome, Firefox and IE10+, but fails on IE9 and below. The reported JS error is that <em>SP.Ribbon. is null or undefined</em></p>
  
  <p>Although I cannot be sure, it would appear that SP2013 supports IE9, but looking at the header of the SP wiki page source I see</p>
  
  <pre><code>&lt;meta http-equiv="X-UA-Compatible" content="IE=10" /&gt;
  </code></pre>
  
  <p><strong>Question</strong>: Does SP2013 support IE9? If not, is there an alternative way to check whether the page state is in Edit mode?</p>