But using the YUI will need you to include a huge JS file, which may take some significant times to download to the client machine. Therefore, it’s a wise choice to shorten the file or to compress it using web gzip compression or to compress it by removing all the unecessary white space and the new line characters (\n)
If you got NO clue on how to shorten or compress a YUI library JS file, Rodolphe Stoclin has got an online compressor for the YUI lib, which is a great helper to reduce the file size of your YUI library. Just upload your YUI JS file, and it’ll return a compressed version for you to use. And it also shows the compression rate on the fly.