Dynamic Stylesheet loads but doesn’t finish

It was just a missed line of code since it’s a new WP_Query:

Needed to add 'posts_per_page' => -1 to

$the_query = new WP_Query(array(
    'post_type' => 'projects'
  ));