Just curious to know if yui improves performance? As all the css and javascript files are on the YAHOO servers and only a part of it is loaded when needed. so does it help in improving performance?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
YUI does not improves performances by itself, it’s a set of tools that can help you to develop faster. Now, you may be confused by something you read previously on the net about perf, and here is what you have to know :
YUI includes tools to compress and load dynamically your jJavascript files. Therefor you can make their loading more efficient. You can gain performances, or perceived performances, from using it.
YUI contains a Javascript framework that is probably better that any code you can write yourself. Since you can include this code to replace yours, and knowing that you can make it so it is downloaded from the very fast Yahoo! servers, then yes, you gain performances here too.
Therefor, if a file comes from Yahoo! servers, a lot of people will likely have already visited a page doing the same, and already downloaded the javascript code. In that case, their browser kept a copy of the files in cache, so they don’t have to download it twice and no download means better performances.
Now, you must know that this is not specific to YUI. Closure, Mootools, Prototypes and JQuery offer similar features, and you can use the Google servers to provide them.