I hope use a CDN source as default, which doesn't load the local jquery.js while the CDN is OK. If the CDN doesn't reply, load the local jquery.js.
I have writted this in my template.php.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>!window.jQuery && document.write('<script src="<?php echo base_path().path_to_theme(); ?>/js/jquery.min.js"><\/script>');</script>
It worked well until I used the Flag module, which loads the flag.js file. I think this file just work with the version of jQuery that comes with Drupa, as it doesn't work with the jQuery library from Google CDN.
Did Drupal developers rewrite the whole jquery.js? I cant believe that.
What should I do to solve this problem? Can I fix it by rewriting flag.js? If it's possible I really don't want use other module such as the jQuery Update module; it is too huge.