My Quotes


When U were born , you cried and the world rejoiced
Live U'r life in such a way that when you go
THE WORLD SHOULD CRY






Wednesday, October 21, 2009

JS and CSS compression


Most of the web sites need to do this to ensure that the application performs much better in terms of performance.

I have an ANT task which will do this in a much better way. Here are the steps for the same.
  • Download the jar file named YuiCompressorTask (originally from Yahoo) from the web site YUI Compressor
  • Place this jar file in the location <ant_home>\lib
  • Create ANT task as follows

  • Change the locations according to your needs.


  • 	
    		
    			
     			
    			
    					  
    			
    					  
    			
    			
    				
    		
    			
    		
    		
    			
    				
    	
    


    	
    		
    				
    				
    					
    		 			
    					
    							  
    					
    					 
    			    	
    				        
    					
    						
    		                
    						
    					
    				        
    						
    						
    	
    	
    			
    					
    				
    				
    					
    						
    		
    

    No comments :