用 jQuery 既時候係唔係應該統一使用 Google API host既檔案?

編寫、設計網頁與程式。

版主: hamu278, 銘仔

版面規則
  • 本版面亦可以討論網頁寄存公司

用 jQuery 既時候係唔係應該統一使用 Google API host既檔案?

文章Freeman » 2009-04-09, 23:14

如題....最少cache方面有好處啦... :oops:

http://ajax.googleapis.com/ajax/libs/jq ... ery.min.js
Freeman
地球會員
 
文章: 1680
註冊時間: 2008-06-25, 21:04

Re: 用 jQuery 既時候係唔係應該統一使用 Google API host既檔案?

文章bananasims » 2009-04-09, 23:41

jQuery 咪有 Minefield 版下載 :oops:
我記得有隻 PHP 程式可以直程將 JavaScript 壓縮到 packed 版本(好似 Minefield 咁),不過唔知叫乜名 :oops:
影像.從心 At the heart of the ímage
bananasims
太陽會員
 
文章: 13541
註冊時間: 2005-09-22, 00:00

Re: 用 jQuery 既時候係唔係應該統一使用 Google API host既檔案?

文章Freeman » 2009-04-09, 23:49

如果用GOOGLE既CACHE一次就得啦嘛 :oops:
Freeman
地球會員
 
文章: 1680
註冊時間: 2008-06-25, 21:04


Re: 用 jQuery 既時候係唔係應該統一使用 Google API host既檔案?

文章bananasims » 2009-04-09, 23:54

ntf 寫:http://javascript.crockford.com/jsmin.html

http://joliclic.free.fr/php/javascript-packer/en/

第二條 link 正是 ;)
影像.從心 At the heart of the ímage
bananasims
太陽會員
 
文章: 13541
註冊時間: 2005-09-22, 00:00

Re: 用 jQuery 既時候係唔係應該統一使用 Google API host既檔案?

文章Freeman » 2009-04-09, 23:54

唔係指呢個問題..

而係如果用jQ既網站都連去GOOGLE API個FILE唔係會CACHE少好多咩 :oops: :oops:
Freeman
地球會員
 
文章: 1680
註冊時間: 2008-06-25, 21:04

Re: 用 jQuery 既時候係唔係應該統一使用 Google API host既檔案?

文章bananasims » 2009-04-09, 23:57

iamfreeman 寫:唔係指呢個問題..

而係如果用jQ既網站都連去GOOGLE API個FILE唔係會CACHE少好多咩 :oops: :oops:

盜連 :oops:
影像.從心 At the heart of the ímage
bananasims
太陽會員
 
文章: 13541
註冊時間: 2005-09-22, 00:00

Re: 用 jQuery 既時候係唔係應該統一使用 Google API host既檔案?

文章Freeman » 2009-04-10, 00:00

bananasims 寫:
iamfreeman 寫:唔係指呢個問題..

而係如果用jQ既網站都連去GOOGLE API個FILE唔係會CACHE少好多咩 :oops: :oops:

盜連 :oops:

API :oops:
Freeman
地球會員
 
文章: 1680
註冊時間: 2008-06-25, 21:04

Re: 用 jQuery 既時候係唔係應該統一使用 Google API host既檔案?

文章hamu278 » 2009-04-10, 08:36

原來 jQuery 官網都用呢條 link: :D :D
http://ajax.googleapis.com/ajax/libs/jq ... ery.min.js
圖檔
頭像
hamu278
金星會員
 
文章: 4482
註冊時間: 2006-06-04, 08:49
來自: 香港

Re: 用 jQuery 既時候係唔係應該統一使用 Google API host既檔案?

文章Freeman » 2009-04-10, 13:02

我得閒都轉埋先 :oops:
Freeman
地球會員
 
文章: 1680
註冊時間: 2008-06-25, 21:04

Re: 用 jQuery 既時候係唔係應該統一使用 Google API host既檔案?

文章bananasims » 2009-04-10, 13:37

Google API 會唔會隨時 update 架 :oops:
影像.從心 At the heart of the ímage
bananasims
太陽會員
 
文章: 13541
註冊時間: 2005-09-22, 00:00

Re: 用 jQuery 既時候係唔係應該統一使用 Google API host既檔案?

文章Freeman » 2009-04-10, 16:07

bananasims 寫:Google API 會唔會隨時 update 架 :oops:

唔會, 佢係分版本既
1.2.6, 1.3.2果D分開

http://ajax.googleapis.com/ajax/libs/jq ... ery.min.js
Freeman
地球會員
 
文章: 1680
註冊時間: 2008-06-25, 21:04


回到 [B1] 網頁製作、程式編寫與介面設計



誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 16 位訪客

cron