title: Jetpack Infinite Scroll Uncaught SyntaxError: Unexpected token "<"
body: <p>When implementing Jet Pack for wordpress infinite scroll, my dev/staging server throws this error and wont load the next posts. However, locally it works fine, posts load normally and no console error. I've looked for open tags, and attempted to reorganize a few function calls however, the console always throws an unexpected token error for the first character in the header.php. I swear at one point it was working on the live dev/staging server but I could be mistaken. </p>
  
  <p>Uncaught SyntaxError: Unexpected token &lt;</p>
  
  <p><a href="https://i.stack.imgur.com/jDMWL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jDMWL.png" alt="enter image description here"></a></p>
  
  <p>This is my Init for Infinite Scroll</p>
  
  <pre><code>// Add Infinite Scroll
  
  function elevator_infinite_scroll_init() {
      add_theme_support( 'infinite-scroll', array(
      'type' =&gt; 'click',
      'container' =&gt; 'content',
      'render' =&gt; 'elevator_infinite_scroll_render',
      'footer' =&gt; false,
      'wrapper' =&gt; false,
      'posts_per_page' =&gt; '9',
      ));
  }
  add_action( 'init', 'elevator_infinite_scroll_init' );
  
  function elevator_infinite_scroll_render() {
      get_template_part( 'more-content');
  }
  </code></pre>
  
  <p>testing for any plugin conflicts now</p>