Ben Wordpress kullanarak siteleri geliştiriyorum ve jQuery lates sürümünü kullanmak istiyorum.
Ben lates sürümünü kullandığınızdan emin olmak için, ben Binary Bonsai's example bu kod parçası bulduk.
Ne görüyorum, o aslında Google API de jQuery bağlantılar olmasıdır.
Yani benim soru daha olduğunu, ne olduğunu.
To link to jQuery on an external page?
http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
or to have the jquery file locally?
wp_enqueue_script('jquery', '/js/jquery-1.4.2.min.js');
UPDATE
Thanks to Colin, the answer is actually here:
http://stackoverflow.com/questions/2180391/why-should-i-use-googles-cdn-for-jquery
Ama tjust durumda benim gibi, arama vadede Google
yok, ben John Gietzen gelen cevap kopyalamak olacak
It increases the parallelism available.
(Most browsers will only download 3 or 4 files at a time from any given site)It increases the chance that there will be a cache-hit.
(As more sites follow this practice, more users have the file already ready.)It ensures that the payload will be as small as possible.
(Google can pre-gzip-compress the file, making the time-to-download very small.)It reduces the amount of bandwidth used by the server.
(Google is basically offering free bandwidth.)It ensures that the user will get a geographically close response.
(Google has servers all over the world, further decreasing the latency.)