Jawr API : Minifying, bundling and compression for Javascript and CSS
--------------------------------------------------------------------- Key: OFBIZ-2864 URL: https://issues.apache.org/jira/browse/OFBIZ-2864 Project: OFBiz Issue Type: New Feature Components: ALL COMPONENTS Affects Versions: SVN trunk Environment: trunk 805338 Reporter: Eric DE MAULDE I would like to decrease pages weight, in order to increase page loading speed. A solution is to reduce Javascript and CSS files. The Jawr API (https://jawr.dev.java.net/) allows this function So, is it conceivable to implement Jawr API into OFBiz ? Or do you have a better API ? *** I'm trying to implement this API web.xml : <servlet-mapping> <servlet-name>CatalogUrlServlet</servlet-name> <url-pattern>/products/*</url-pattern> </servlet-mapping> <servlet> <servlet-name>JavascriptServlet</servlet-name> <servlet-class>net.jawr.web.servlet.JawrServlet</servlet-class> <init-param> <param-name>configLocation</param-name> <param-value>jawr.properties</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>JavascriptServlet</servlet-name> <url-pattern>*.js</url-pattern> </servlet-mapping> jawr.properties : # Basic global properties jawr.charset.name=UTF-8 jawr.debug.on=true jawr.gzip.on=true jawr.gzip.ie6.on=false # Basic JS/CSS servlet-specific properties jawr.js.use.cache=false jawr.css.use.cache=false # JS bundle definition properties jawr.js.bundle.names=lib jawr.js.bundle.lib.global=true jawr.js.bundle.lib.id=/bundles/lib.js jawr.js.bundle.lib.mappings=/images/javascript/** But I can get the final Javascript file, calling : http://127.0.0.1/ecommerce/images/bundles/lib.js Could you help me please ? Eric -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
[ https://issues.apache.org/jira/browse/OFBIZ-2864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric DE MAULDE updated OFBIZ-2864: ---------------------------------- Description: I would like to decrease pages weight, in order to increase page loading speed. A solution is to reduce Javascript and CSS files. The Jawr API (https://jawr.dev.java.net/) allows this function So, is it conceivable to implement Jawr API into OFBiz ? Or do you have a better API ? *** I'm trying to implement this API web.xml : <servlet-mapping> <servlet-name>CatalogUrlServlet</servlet-name> <url-pattern>/products/*</url-pattern> </servlet-mapping> <servlet> <servlet-name>JavascriptServlet</servlet-name> <servlet-class>net.jawr.web.servlet.JawrServlet</servlet-class> <init-param> <param-name>configLocation</param-name> <param-value>jawr.properties</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>JavascriptServlet</servlet-name> <url-pattern>*.js</url-pattern> </servlet-mapping> jawr.properties : # Basic global properties jawr.charset.name=UTF-8 jawr.debug.on=true jawr.gzip.on=true jawr.gzip.ie6.on=false # Basic JS/CSS servlet-specific properties jawr.js.use.cache=false jawr.css.use.cache=false # JS bundle definition properties jawr.js.bundle.names=lib jawr.js.bundle.lib.global=true jawr.js.bundle.lib.id=/bundles/lib.js jawr.js.bundle.lib.mappings=/images/** But I can get the final Javascript file, calling : http://127.0.0.1/ecommerce/images/bundles/lib.js Could you help me please ? Eric was: I would like to decrease pages weight, in order to increase page loading speed. A solution is to reduce Javascript and CSS files. The Jawr API (https://jawr.dev.java.net/) allows this function So, is it conceivable to implement Jawr API into OFBiz ? Or do you have a better API ? *** I'm trying to implement this API web.xml : <servlet-mapping> <servlet-name>CatalogUrlServlet</servlet-name> <url-pattern>/products/*</url-pattern> </servlet-mapping> <servlet> <servlet-name>JavascriptServlet</servlet-name> <servlet-class>net.jawr.web.servlet.JawrServlet</servlet-class> <init-param> <param-name>configLocation</param-name> <param-value>jawr.properties</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>JavascriptServlet</servlet-name> <url-pattern>*.js</url-pattern> </servlet-mapping> jawr.properties : # Basic global properties jawr.charset.name=UTF-8 jawr.debug.on=true jawr.gzip.on=true jawr.gzip.ie6.on=false # Basic JS/CSS servlet-specific properties jawr.js.use.cache=false jawr.css.use.cache=false # JS bundle definition properties jawr.js.bundle.names=lib jawr.js.bundle.lib.global=true jawr.js.bundle.lib.id=/bundles/lib.js jawr.js.bundle.lib.mappings=/images/javascript/** But I can get the final Javascript file, calling : http://127.0.0.1/ecommerce/images/bundles/lib.js Could you help me please ? Eric > Jawr API : Minifying, bundling and compression for Javascript and CSS > --------------------------------------------------------------------- > > Key: OFBIZ-2864 > URL: https://issues.apache.org/jira/browse/OFBIZ-2864 > Project: OFBiz > Issue Type: New Feature > Components: ALL COMPONENTS > Affects Versions: SVN trunk > Environment: trunk 805338 > Reporter: Eric DE MAULDE > > I would like to decrease pages weight, in order to increase page loading speed. > A solution is to reduce Javascript and CSS files. > The Jawr API (https://jawr.dev.java.net/) allows this function > So, is it conceivable to implement Jawr API into OFBiz ? > Or do you have a better API ? > *** > I'm trying to implement this API > web.xml : > <servlet-mapping> > <servlet-name>CatalogUrlServlet</servlet-name> > <url-pattern>/products/*</url-pattern> > </servlet-mapping> > <servlet> > <servlet-name>JavascriptServlet</servlet-name> > <servlet-class>net.jawr.web.servlet.JawrServlet</servlet-class> > <init-param> > <param-name>configLocation</param-name> > <param-value>jawr.properties</param-value> > </init-param> > <load-on-startup>1</load-on-startup> > </servlet> > <servlet-mapping> > <servlet-name>JavascriptServlet</servlet-name> > <url-pattern>*.js</url-pattern> > </servlet-mapping> > jawr.properties : > # Basic global properties > jawr.charset.name=UTF-8 > jawr.debug.on=true > jawr.gzip.on=true > jawr.gzip.ie6.on=false > # Basic JS/CSS servlet-specific properties > jawr.js.use.cache=false > jawr.css.use.cache=false > # JS bundle definition properties > jawr.js.bundle.names=lib > jawr.js.bundle.lib.global=true > jawr.js.bundle.lib.id=/bundles/lib.js > jawr.js.bundle.lib.mappings=/images/** > But I can get the final Javascript file, calling : > http://127.0.0.1/ecommerce/images/bundles/lib.js > Could you help me please ? > Eric -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric DE MAULDE updated OFBIZ-2864: ---------------------------------- Priority: Trivial (was: Major) > Jawr API : Minifying, bundling and compression for Javascript and CSS > --------------------------------------------------------------------- > > Key: OFBIZ-2864 > URL: https://issues.apache.org/jira/browse/OFBIZ-2864 > Project: OFBiz > Issue Type: New Feature > Components: ALL COMPONENTS > Affects Versions: SVN trunk > Environment: trunk 805338 > Reporter: Eric DE MAULDE > Priority: Trivial > > I would like to decrease pages weight, in order to increase page loading speed. > A solution is to reduce Javascript and CSS files. > The Jawr API (https://jawr.dev.java.net/) allows this function > So, is it conceivable to implement Jawr API into OFBiz ? > Or do you have a better API ? > *** > I'm trying to implement this API > web.xml : > <servlet-mapping> > <servlet-name>CatalogUrlServlet</servlet-name> > <url-pattern>/products/*</url-pattern> > </servlet-mapping> > <servlet> > <servlet-name>JavascriptServlet</servlet-name> > <servlet-class>net.jawr.web.servlet.JawrServlet</servlet-class> > <init-param> > <param-name>configLocation</param-name> > <param-value>jawr.properties</param-value> > </init-param> > <load-on-startup>1</load-on-startup> > </servlet> > <servlet-mapping> > <servlet-name>JavascriptServlet</servlet-name> > <url-pattern>*.js</url-pattern> > </servlet-mapping> > jawr.properties : > # Basic global properties > jawr.charset.name=UTF-8 > jawr.debug.on=true > jawr.gzip.on=true > jawr.gzip.ie6.on=false > # Basic JS/CSS servlet-specific properties > jawr.js.use.cache=false > jawr.css.use.cache=false > # JS bundle definition properties > jawr.js.bundle.names=lib > jawr.js.bundle.lib.global=true > jawr.js.bundle.lib.id=/bundles/lib.js > jawr.js.bundle.lib.mappings=/images/** > But I can get the final Javascript file, calling : > http://127.0.0.1/ecommerce/images/bundles/lib.js > Could you help me please ? > Eric -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752708#action_12752708 ] Eric DE MAULDE commented on OFBIZ-2864: --------------------------------------- http://www.nabble.com/JAWR---bundling-and-compression-for-Javascript-and-CSS-%3A-The-requested-resource-is-not-available-td25245324.html With different name for jawr.properties files, manual configuration works well. It's a good library in order to a web page loses kb But I haven't yet succeeded to implement a dynamic configuration > Jawr API : Minifying, bundling and compression for Javascript and CSS > --------------------------------------------------------------------- > > Key: OFBIZ-2864 > URL: https://issues.apache.org/jira/browse/OFBIZ-2864 > Project: OFBiz > Issue Type: New Feature > Components: ALL COMPONENTS > Affects Versions: SVN trunk > Environment: trunk 805338 > Reporter: Eric DE MAULDE > Priority: Trivial > > I would like to decrease pages weight, in order to increase page loading speed. > A solution is to reduce Javascript and CSS files. > The Jawr API (https://jawr.dev.java.net/) allows this function > So, is it conceivable to implement Jawr API into OFBiz ? > Or do you have a better API ? > *** > I'm trying to implement this API > web.xml : > <servlet-mapping> > <servlet-name>CatalogUrlServlet</servlet-name> > <url-pattern>/products/*</url-pattern> > </servlet-mapping> > <servlet> > <servlet-name>JavascriptServlet</servlet-name> > <servlet-class>net.jawr.web.servlet.JawrServlet</servlet-class> > <init-param> > <param-name>configLocation</param-name> > <param-value>jawr.properties</param-value> > </init-param> > <load-on-startup>1</load-on-startup> > </servlet> > <servlet-mapping> > <servlet-name>JavascriptServlet</servlet-name> > <url-pattern>*.js</url-pattern> > </servlet-mapping> > jawr.properties : > # Basic global properties > jawr.charset.name=UTF-8 > jawr.debug.on=true > jawr.gzip.on=true > jawr.gzip.ie6.on=false > # Basic JS/CSS servlet-specific properties > jawr.js.use.cache=false > jawr.css.use.cache=false > # JS bundle definition properties > jawr.js.bundle.names=lib > jawr.js.bundle.lib.global=true > jawr.js.bundle.lib.id=/bundles/lib.js > jawr.js.bundle.lib.mappings=/images/** > But I can get the final Javascript file, calling : > http://127.0.0.1/ecommerce/images/bundles/lib.js > Could you help me please ? > Eric -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Free forum by Nabble | Edit this page |