title: core-js wordpress integration
body: <p>I was used to integrating core-js via html, which does not seem to work in new versions.</p>
  <p>In particular I am trying to implement the core library in a wordpress installation, without great results.</p>
  <p>This is how I try to integrate core-js in functions.php:</p>
  <pre><code>wp_enqueue_script('core-js','https://cdnjs.cloudflare.com/ajax/libs/core-js/3.22.5/minified.js');
  wp_enqueue_script('custom-js', get_stylesheet_directory_uri() . '/js/custom.js');
  </code></pre>
  <p>And this is my script:</p>
  <pre><code>var CustomizeColors = {
      init: function(){
          var blocks = document.getElementsByClassName(&quot;block-title td-block-title&quot;);
          for(i=0; i&lt;blocks.length; i++ ){
              if(i%2 == 0){
                  blocks[i].addClass(&quot;red&quot;);
              }
              else{
                  blocks[i].addClass(&quot;blue&quot;); 
              }
          }
      }
  }
  Core.start(CustomizeColors);
  </code></pre>
  <p>In console i get:</p>
  <blockquote>
  <p>&quot;custom.js?ver=5.9.3:14 Uncaught ReferenceError: Core is not defined&quot;</p>
  </blockquote>
  <p>Can someone help me?</p>