title: How to load certain scripts only on single pages of custom post type in wordpress?
body: <p>This following fails to load the scripts in the single pages,</p>
  
  <pre><code>if(is_single( ) ) add_action('wp_enqueue_scripts', 'build_js');
  </code></pre>
  
  <p>Suppose, If i use</p>
  
  <pre><code>add_action('wp_enqueue_scripts', 'build_js');
  </code></pre>
  
  <p>the action is performed and scripts are loaded. </p>
  
  <p>I need to perform the action only on single pages of a custom post type. How to do this? </p>