John Walsh

Greenhorn
+ Follow
since Apr 15, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by John Walsh

A Kumar wrote:Hi,

I have to render the user a jsp page and in the jsp page,there is a javascript called.Now this js file is of 100kb.I want to compress this file while sending it to the user.How can i do it??? I am using Websphere server.

Thanks in advance,



I recommend to use Granule Tag lib the http://code.google.com/p/granule/

It gzip and combine javascripts wrapped by g:compress tag

code sample is:
<pre>
<g:compress>
<script type="text/javascript" src="common.js"/>
<script type="text/javascript" src="closure/goog/base.js"/>
</script>
</g:compress>
...

</pre>