title: jQuery AJAX request not working in Internet Explorer
body: <p>I'm attempting to dynamically load in a shopping cart on page load, which works great in everything other than Internet explorer (tested in version 8 and version 11). The code is:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function($){
          $(".view_cart, .cart_close_button").click(function () {
              $("#cart_content").toggle();
              $(".view_cart").toggleClass('toggled');
              $(".cart_button").toggleClass('cart_pressed');
              $(".cart_header").toggleClass('show');           
              $(".cart_close_button").toggleClass('show');  
              $(".cart_total_icon").toggleClass('hide');              
              return false;                               
          });        
  
          $.get("/products/show_cart", function(cart){ // Get the contents of the url cart/show_cart
          $("#cart_content").html(cart); // Replace the information in the div #cart_content with the retrieved data
          });             
  
      });   
  
      $(window).load(function(){
        setTimeout(function(){ $('.page_message').fadeOut() }, 4000);
      });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>HTML for the cart page (this is very basic at the moment)</p>
  
  <pre><code>&lt;div class="content"&gt;
      &lt;div class="grid grid-pad"&gt;
          &lt;div class="col-1-1"&gt;
              &lt;span class="page_message green_alert"&gt;&lt;strong&gt;Cart cleared.&lt;/strong&gt; Your shopping cart has been emptied.&lt;/span&gt;
          &lt;/div&gt;
      &lt;/div&gt;  
  
      &lt;div class="cart_button"&gt;
  
          &lt;a href="#" class="view_cart" title="View your cart"&gt;&lt;i class="fa fa-shopping-cart fa-3x"&gt;&lt;/i&gt; &lt;span class="cart_header"&gt;Your Shopping Cart&lt;/span&gt;&lt;/a&gt;
          &lt;a href="#" title="Hide your cart" class="cart_close_button"&gt;X&lt;/a&gt;
  
          &lt;div id="cart_content"&gt;
              &lt;p&gt;CART STUFF GOES HERE&lt;/p&gt;
          &lt;/div&gt;  
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Anybody know why IE doesn't want to play ball here? It works if I add the <code>.get</code> code into the click function, but that causes a small delay when opening the cart box, which I want to avoid really.</p>
  
  <p>Edited to add page HTML and IE versions.</p>