This is a migrated thread and some comments may be shown as answers.

[Solved] Compressing JQuery and JQueryUI

1 Answer 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Matthew
Top achievements
Rank 1
Matthew asked on 02 Sep 2009, 04:44 PM
In the default configuration, the JQuery files are not compressed when transmitted.
Even when I modified the Defaults to compress by default, they were not being compressed.
It turns out that compression only is meaningful if there is also a combine so the .axd is called, and hence the HttpHandler.

However, understanding this, it is possible to reduce your payload by quite a bit, 170KB -> 55KB.
Furthermore, if the JQuery and JQueryUI .js files were combined, then there would be a reduction of the overhead for the second load.

Great work!!!! Some very interesting ideas and implementations.  I look forward to the next release

Matthew Dennis

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 03 Sep 2009, 10:18 AM
Hello Matthew,

Indeed by default only combined scripts (and css for that matter) can be compressed. The reason for this is that only during combination is the custom HTTP handler used.

For the time being there is no easy way to combine the jquery and jquery-ui javascript files in the same request. It should have been possible by changing the group in which the jquery-ui script is added to "Default" but this currently does not work. I totally agree that this is a must-have feature and we will implement that in a future release.

Regards,
Atanas Korchev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Matthew
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or