title: Wordpress: "Fatal error: Allowed memory size..." anytime I try to register and enqueue script in functions.php file
body: <p>Every time I try to register and enqueue script in my function.php file I get the error</p>
  
  <blockquote>
    <p>Fatal error: Allowed memory size of 134217728 bytes exhausted (tried
    to allocate 261904 bytes) in C:\Program Files (x86)\Apache Software
    Foundation\Apache2.2\htdocs\namewebsite\wp-includes\class.wp-dependencies.php
    on line 178</p>
  </blockquote>
  
  <p>here is the code used in my functions.php file</p>
  
  <pre><code>function load_external_js() { // load external file  
      wp_enqueue_script('jquery');
      wp_register_script('hash-change', get_template_directory_uri() . '/js/jquery.hashchange.event.plugin.js', array('hash-change'), '', true );
      wp_enqueue_script('hash-change');
      wp_register_script('ajax-theme', get_template_directory_uri() . '/js/ajax-implementation.js', array('ajax-theme'), '', true );
      wp_enqueue_script('ajax-theme');
  }  
  add_action('wp_enqueue_scripts', 'load_external_js');
  </code></pre>
  
  <p>How can I fix this?</p>