combine javascript files

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
12/13/2010 7:16:41 PM
Gravatar
Total Posts 33

combine javascript files

I am debugging using the firefox firebug to test the performance of the mojoportal website. The website loads pretty slow.  I am trying to optimize stuff on the web so the performance improves. Can some one throw light on how to tackle the below performance issues. I am looking to fix the issues that are outlined in the firebug. There are few others like optimize images which I will look later. Thoughts on improving the below would be greatly appreciated. Suggest me do I need to tweek in the source code some where to improve performance. I am using jquery144 and jqueryui186 ( the latest ones). There was access denied error and so hosted the jquery on local server.

Below given are some of the observations in firebug/Yslow

There are 12 JavaScript files served from www.mydomain.com. They should be combined into as few files as possible.

* http://www.mydomain.com/ClientScript/greybox/gbcombined.js
* http://www.mydomain.com/ClientScript/jqmojo/jquery.cluetip.js
* http://www.mydomain.com/ClientScript/jquery144/jquery.min.js
* http://www.mydomain.com/ClientScript/jqueryui186/jquery-ui.min.js
* http://www.mydomain.com/ClientScript/mojocombined.js
* http://www. mydomain.com/ClientScript/oomph/oomph.min.js
* http://www.mydomain.com/ScriptResource.axd?d=2KgjJKwgOPYoyshjPmi90k_qm8d-K55RtiAQKmm...
* http://www.mydomain.com/ScriptResource.axd?d=2KgjJKwgOPYoyshjPmi90k_qm8d-K55RtiAQKmm...
* http://www.mydomain.com/ScriptResource.axd?d=2KgjJKwgOPYoyshjPmi90k_qm8d-K55RtiAQKmm...
* http://www.mydomain.com/ScriptResource.axd?d=WE04XwQvNpMblZarIatoNBYDid9HPWE3MSa2cWM...
* http://www.mydomain.com/ScriptResource.axd?d=WE04XwQvNpMblZarIatoNBYDid9HPWE3MSa2cWM...
* http://www.mydomain.com/WebResource.axd?d=wuHCulEJ7ItpvTZ6fgLBkA2&t=6341548297481080...
 

The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources:

* http://www.mydomain.com/Data/Sites/1/FolderGalleries/thumbsdown.png (expiration not specified)
* http://www.mydomain.com/Data/Sites/1/FolderGalleries/thumbsup.png (expiration not specified)
* http://www.mydomain.com/ClientScript/greybox/g_close.gif (expiration not specified)
* http://www.mydomain.com/ClientScript/greybox/gbcombined.js (expiration not specified)
* http://www.mydomain.com/ClientScript/greybox/header_bg.gif (expiration not specified)
* http://www.mydomain.com/ClientScript/greybox/indicator.gif (expiration not specified)
* http://www.mydomain.com/ClientScript/greybox/w_close.gif (expiration not specified)
* http://www.mydomain.com/ClientScript/jqmojo/jquery.cluetip.js (expiration not specified)
* http://www.mydomain.com/ClientScript/jquery144/jquery.min.js (expiration not specified)
* http://www.mydomain.com/ClientScript/jqueryui186/jquery-ui.min.js (expiration not specified)
* http://www.mydomain.com/ClientScript/jqueryui186/themes/cupertino/images/ui-bg_glass... (expiration not specified)
* http://www.mydomain.com/ClientScript/jqueryui186/themes/cupertino/images/ui-bg_glass... (expiration not specified)
* http://www.mydomain.com/ClientScript/jqueryui186/themes/cupertino/images/ui-bg_glass... (expiration not specified)
* http://www.mydomain.com/ClientScript/jqueryui186/themes/cupertino/images/ui-bg_highl... (expiration not specified)
* http://www.mydomain.com/ClientScript/jqueryui186/themes/cupertino/images/ui-bg_highl... (expiration not specified)
* http://www.mydomain.com/ClientScript/jqueryui186/themes/cupertino/images/ui-icons_3d... (expiration not specified)
* http://www.mydomain.com/ClientScript/jqueryui186/themes/cupertino/images/ui-icons_ff... (expiration not specified)
* http://www.mydomain.com/ClientScript/jqueryui186/themes/cupertino/jquery.ui.all.css (expiration not specified)

 

 

Minifying the following JavaScript resources using JSMin could reduce their size by 260.0KiB (23% reduction).

* Minifying http://www.mydomain.com/ScriptResource.axd?d=2KgjJKwgOPYoyshjPmi90k_qm8d-K55RtiAQKmm... could save 161.7KiB (46% reduction). See optimized version or Save as.
* Minifying http://www.mydomain.com/ScriptResource.axd?d=2KgjJKwgOPYoyshjPmi90k_qm8d-K55RtiAQKmm... could save 34.3KiB (36% reduction). See optimized version or Save as.
* Minifying http://www.mydomain.com/ScriptResource.axd?d=2KgjJKwgOPYoyshjPmi90k_qm8d-K55RtiAQKmm... could save 13.4KiB (43% reduction). See optimized version or Save as.
* Minifying http://www.mydomain.com/ClientScript/jqmojo/jquery.cluetip.js could save 11.8KiB (50% reduction). See optimized version or Save as.
* Minifying http://www.mydomain.com/ClientScript/jqueryui186/jquery-ui.min.js could save 8.9KiB (4% reduction). See optimized version or Save as.
* Minifying http://www.mydomain.com/ScriptResource.axd?d=WE04XwQvNpMblZarIatoNBYDid9HPWE3MSa2cWM... could save 8.3KiB (30% reduction). See optimized version or Save as.
* Minifying http://www.mydomain.com/ScriptResource.axd?d=WE04XwQvNpMblZarIatoNBYDid9HPWE3MSa2cWM... could save 7.1KiB (33% reduction). See optimized version or Save as.
* Minifying http://www.mydomain.com/ClientScript/mojocombined.js could save 6.5KiB (42% reduction). See optimized version or Save as.
* Minifying http://www.mydomain.com/WebResource.axd?d=wuHCulEJ7ItpvTZ6fgLBkA2&t=6341548297481080... could save 6.1KiB (28% reduction). See optimized version or Save as.
* Minifying http://www.mydomain.com/ClientScript/greybox/gbcombined.js could save 1.0KiB (4% reduction). See optimized version or Save as.
* Minifying http://www.mydomain.com/ClientScript/jquery144/jquery.min.js could save 515B (0% reduction). See optimized version or Save as.
* Minifying http://static.ak.fbcdn.net/rsrc.php/z1/r/yQuyB-6IqGN.js could save 430B (1% reduction). See optimized version or Save as.
* Minifying http://www.google-analytics.com/ga.js could save 36B (0% reduction). See optimized version or Save as.
* Minifying http://static.ak.fbcdn.net/rsrc.php/zH/p/r/ORpXTzPff7r.js could save 25B (0% reduction). See optimized version or Save as.
* Minifying http://static.ak.fbcdn.net/rsrc.php/zq/p/r/GrxeEeVTAvS.js could save 25B (0% reduction). See optimized version or Save as.

 

This page makes 58 parallelizable requests to www.littleindiadeals.com. Increase download parallelization by distributing these requests across multiple hostnames:

3 samples for this category are

# http://www.mydomain.com/Data/Sites/1/FolderGalleries/thumbsup.png
# http://www.mydomain.com/webdev1/ClientScript/greybox/gbcombined.js
# http://www.mydomain.com/webdev1/ClientScript/jqmojo/jquery.cluetip.js

 

12/14/2010 7:23:50 AM
Gravatar
Total Posts 18439

Re: combine javascript files

Hi,

If your site runs slow you need to be looking at things that have more impact on performance. These optimizations recommended by YSlow are like waxing your car to reduce wind resistance and make it go faster, maybe you can squeeze a tiny improvement out of a race car with this approach but it will not make enough difference that the driver will notice it.

It is a waste of time if you have other more important factors making your site slow such as cheap web hosting, deploying a debug build etc.  If I had a dollar for every time people using cheap hosting like GoDaddy asked about improving their YSlow score I'd be a rich man.

This site is not slow and mojoPortal running in decent hosting is not slow.

see also this related thread.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.