Skip to main content

Posts

Showing posts with the label YSlow

Aggregating DWR interface scripts

My company has a website and running Yslow on it reported that the no of HTTP requests were in the range of 120-130. Accessing the site from UK was pretty slow. Now we used CSS sprites to reduce the no of css images and we were already using JS and CSS aggregation. There were still 10-12 DWR interface scripts and as browser stops rendering while its downloading and rendering js files. I was looking for a solution for aggregate DWR generated interfaces. I searched a lot and than landed onto JAWR. As we are using build time aggregation for static JS I am using JAWR only for generated interface JS. Here are the things I did. Add jawr lib to WEB-INF/classes ==============================web.xml============================     <servlet>         <servlet-name>JawrServlet</servlet-name>         <servlet-class>net.jawr.web.servlet.JawrServlet</servlet-class>      ...