jQuery se přesouvá na Googleapis
Nálepky:
Pokud na svém webu používáte jQuery a vkládáte ho z code.jquery.com
, tak byste měli změnit odkazy. Ode dneška je totiž primární server pro distribuci změněn na ajax.googleapis.com
. Staré odkazy vrací HTTP kód 301 a přesměrovávají na novou adresu. Pokud chcete změnit adresy přímo na svém webu, může vám pomoci následující tabulka:
- jquery-latest.js: http://ajax.googleapis.com/…/1/jquery.js
- jquery-latest.pack.js: http://ajax.googleapis.com/…query.min.js
- jquery-latest.min.js: http://ajax.googleapis.com/…query.min.js
- jquery.js: http://ajax.googleapis.com/…/1/jquery.js
- jquery-1.3.2.min.js: http://ajax.googleapis.com/…query.min.js
- jquery-1.3.2.js: http://ajax.googleapis.com/….2/jquery.js
- jquery-1.3.1.min.js: http://ajax.googleapis.com/…query.min.js
- jquery-1.3.1.js: http://ajax.googleapis.com/….1/jquery.js
- jquery-1.3.min.js: http://ajax.googleapis.com/…query.min.js
- jquery-1.3.js: http://ajax.googleapis.com/….3/jquery.js
- jquery-1.2.6.min.js: http://ajax.googleapis.com/…query.min.js
- jquery-1.2.6.pack.js: http://ajax.googleapis.com/…query.min.js
- jquery-1.2.6.js: http://ajax.googleapis.com/….6/jquery.js
- jquery-1.2.3.min.js: http://ajax.googleapis.com/…query.min.js
- jquery-1.2.3.pack.js: http://ajax.googleapis.com/…query.min.js
- jquery-1.2.3.js: http://ajax.googleapis.com/….3/jquery.js
stale rozmyslam nad tym ci si JS kniznice nalinkovat na google alebo ci si ich pribalit ku kazdej svojej aplikacii. obavam sa ze ked vypadne google tak ani moj web nepojde. ake mate skusenosti s dostupnostou tychto googlevskych serverov?
ja si to vždy umiestňujem na svoj server nebudem sa spoliehať na google.
jedná se o tzv. CDN, výhoda je ta, že infrastruktura by měla být nějak distribuovaná po světě. Samozřejmě pokud máte z 90% uživatele webu z ČR a jedete na českém hostingu přes NIX, tak je lepší to mít u sebe na serveru. Pokud ale hostujete např. v USA a máte české uživatele, tak určitě využít CDN.