title: Stop loading jquery library from assets folder in Yii
body: <p>I had problem in my app that made it slow , after checked firebug 
  I noted that jquery-ui loaded twice first from google.com and second from assets folder ("232kb") .</p>
  
  <p>How to force it to load from google.com without assets version ?</p>
  
  <p><img src="https://i.stack.imgur.com/CBIf7.jpg" alt="Firebug screenshot"></p>
  
  <p>View content " JavaScript to call Ajax function ":</p>
  
  <pre><code>....
       $(".third,#second-next,#fourth-pr").click(function () {
  
                  $.ajax({
                      url: '&lt;?php echo Yii::app()-&gt;createUrl('site/CallScientificForm',array('language'=&gt;language())); ?&gt;',
                      type: 'GET',
                      dataType: 'html',
                      beforeSend: function () {
                          $("#loading").show();
                      },
                      success: function (data, textStatus, xhr) {
                          $("#hr3").css("background", "#51a351");
                          $("*").removeClass("active");
                          $(".third").addClass("active");
                          $("#firstContent ,#secondContent,#thirdContent,#fourthContent").fadeOut(2000);
                          $("#thirdContent").html(data);
                          $("#thirdContent").fadeIn(2000);
                          $("#loading").hide();
                      },
                      error: function (xhr, textStatus, errorThrown) {
                          $('#' + id + ' .contentarea').html(textStatus);
                      },
                      complete: function() {
                          $(this).data('requestRunning', false);
                      }
                  });
  
              });
  ...
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>...
    public function actionCallScientificForm()
      {
          $scienceModel = new MembershipScientific();
          $view= $this-&gt;renderPartial('_ScientificForm', array('scienceModel' =&gt; $scienceModel, 'language' =&gt; language()), false, true);
          echo $view;
          Yii::app()-&gt;end();
      }
  ..
  </code></pre>
  
  <p>Main config:</p>
  
  <pre><code> 'clientScript'=&gt;array(
              'packages'=&gt;array(
                  'jquery'=&gt;array(
                      'baseUrl'=&gt;'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/',
                      'js'=&gt;array('jquery.js'),
                      'coreScriptPosition'=&gt;CClientScript::POS_END
                  ),
                  'jqueryMin'=&gt;array(
                      'baseUrl'=&gt;'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/',
                      'js'=&gt;array('jquery.min.js'),
                      'coreScriptPosition'=&gt;CClientScript::POS_END
                  ),
                  'jquery-ui'=&gt;array(
                      'baseUrl'=&gt;'https://code.jquery.com/ui/1.11.1/jquery-ui.min.js',
                      'js'=&gt;array('jquery-ui.min.js'),
                      'depends'=&gt;array('jquery'),
                      'coreScriptPosition'=&gt;CClientScript::POS_END
                  )
              ),
          ),
  </code></pre>
  
  <p>And I called it in target view like this :</p>
  
  <pre><code>....
  cs = Yii::app()-&gt;getClientScript();
  
  $cs-&gt;registerCoreScript('jquery');
  $cs-&gt;registerCoreScript('jquery-ui');
  ....
  </code></pre>