title: Wordpress and wp_deregister_script
body: <p>I am trying to prevent all of the different scripts from my shop ( jigoshop ) from loading on every page load. I have been using the <code>wp_deregister_script</code> function but it wont work. My question is, if there is a way that the <code>wp_deregister_script</code> function could be blocked by the plugin itself or any other function?</p>
  
  <p>This is the script i am currently using:</p>
  
  <pre><code>function js_css_control() 
  {
      $link = $_SERVER['REQUEST_URI'];
      $teile = explode("/", $link);
      if($link!="/")
      {
          $seite = $teile[1];
      }
      else
      {
          $seite = "start";
      }
      if($seite=="start")
      {
          wp_deregister_script( 'jigoshop_global' ); 
          wp_deregister_script( 'prettyPhoto' );  
          wp_deregister_style ( 'jigoshop_styles' );
          wp_deregister_style ( 'jigoshop-jquery-ui' );
          wp_deregister_style ( 'jigoshop-select2' );     
      }
  }
  add_action('wp_enqueue_scripts', 'js_css_control');
  </code></pre>