Well.. we've developed a j2ee application using struts2 ajax capabilities. We find that the dojo implementation is quite slow. We did the following things: 1. Custom build of the dojo library. (increased dojo.js from 240kb to 350kb) 2. Took all the static stuff out of the struts jar and kept it outside.
The performance was significantly improved. But still it is quite heavy as you can guess with 350kb size..
Is struts2 ajax supposed to be this heavy? or is there any lighter implementation available?
Edit: I used Firebug and YSlow with my application. Couple of changes that improved my situation hugely are mentioned below:
- Custom build of dojo (reduced the number of I/Os)
- Move the static files out of Struts jar (helped a great deal)
- tune your server to gzip the response (reduced the response size to 1/3)
- Reduce number of images on your site.(this is obvious)
Will keep updating on further changes..