click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Schellink (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CLK-542) Optimize CSS & JS when in production & profile modes
Date Wed, 29 Apr 2009 11:24:30 GMT

    [ https://issues.apache.org/jira/browse/CLK-542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704073#action_12704073
] 

Bob Schellink commented on CLK-542:
-----------------------------------

Its already available :)

http://incubator.apache.org/click/docs/best-practices.html#performance



> Optimize CSS & JS when in production & profile modes
> ----------------------------------------------------
>
>                 Key: CLK-542
>                 URL: https://issues.apache.org/jira/browse/CLK-542
>             Project: Click
>          Issue Type: New Feature
>          Components: core, extras
>            Reporter: Malcolm Edgar
>            Priority: Minor
>
> Use optimized CSS and JS click includes when the application mode is "profile" or "production".
  Use the YUI Compressor to perform optimization at Click build time for example:
> 	<target name="optimize-resources">
> 		<concat destfile="WebRoot/css/screen-all.css" >
> 			<filelist dir="WebRoot/css/" files="text.css,utilClasses.css,layout.css,color.css,whitespace.css,chrome.css,css3.css,screen.css,formsPage.css,avoka.css"/>
> 		</concat>
> 		<java jar="lib/build/yuicompressor-2.4.2.jar" fork="true" failonerror="true">
> 		 	<arg value="-o"/>
> 		 	<arg value="WebRoot/css/screen-min-${build.version}.css"/>
> 		 	<arg value="WebRoot/css/screen-all.css"/>
> 		 </java>
> 		<delete file="WebRoot/css/screen-all.css" failonerror="false"/>
> 		<!-- JS -->
> 		<concat destfile="WebRoot/javascript/javascript-all.js" >
> 			<filelist dir="WebRoot/javascript/" files="jquery-1.3.1.min.js,siteBase.js,readerSniff.js"/>
> 	   </concat>
> 		<java jar="lib/build/yuicompressor-2.4.2.jar" fork="true" failonerror="true">
> 		 	<arg value="-o"/>
> 		 	<arg value="WebRoot/javascript/javascript-min-${build.version}.js"/>
> 		 	<arg value="WebRoot/javascript/javascript-all.js"/>
> 		 </java>
> 		<delete file="WebRoot/javascript/javascript-all.js"  failonerror="false" />
> 	</target>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message