More info at:
http://code.google.com/apis/libraries/devguide.html
Second step is to compress you CSS file (or files, but if you are gonna compress it to save bandwidth, probably you want to merge them in one for better performance). There are several websites which compress CSS files online, and for free. The one I found which works best is:
http://www.lotterypost.com/css-compress.aspx
http://www.lotterypost.com/css-compress.aspx
Well, IMHO it is not *that* good to link js/css/whatever static files directly on google. What if they just change the file and you didn't notice? what if they just move the file and rename it or simply stop offering that solution?
ReplyDeleteWhat if someone hacks into one of the google servers and replace the file with some malicious js code?
If any of those things ever happen you will find that all the sites/apps you've linked against google static files will be in trouble.
I think a much better approach would be set up a small (set of) server(s) running something like varnish-cache, squid or even one of those new webservers (like nginx or cherokee) to serve your static files. Fast, secure and reliable.
I'm not talking about linking files from Google, I'm talking about using the Google Libraries API, where Google maintains versions of jquery (among others) for the use of the community.
ReplyDeleteThey have a commitment to maintain the versions they upload there. And to be honest, if someones hacks Google, my jquery file will be the last of my concerns.