External Assets
CNET's libraries include references to external images in several of its classes. These definitions are always configurable so you can overwrite them with your own values, but if you don't want to you can just use our images and styles.
By default the code points to our servers at www.cnet.com, but this isn't really that desirable because visitors to your site will have to open new connections to a different domain, and this will often be slower than requesting the files from the same domain as the page they are on (i.e. your site).
You can download all our assets at http://code.google.com/p/cnetjavascript/downloads/list and unzip them on to your server. Then you need to configure our scripts to point to this new location. You'll need to include setAssetHref.js in your environment and then execute this code:
setCNETAssetBaseHref("/location/of/assets/on/your/server");
cnet-libraries/00a-assets.txt · Last modified: 2008/09/04 23:52 by aaron-n
