Compress components with gzip - Java EE

前端 未结 5 397
遇见更好的自我
遇见更好的自我 2021-01-21 18:39

I am looking to improve front-end performance of my application, so I used YSlow tool in Firefox. When I ran this tool for my app, in the YSlow grade tab it showed up a issue \'

5条回答
  •  悲哀的现实
    2021-01-21 18:59

    To improve client side performance of Java EE web application, WebUtilities java library can be helpful.

    Here is the link :: https://github.com/rpatil26/webutilities.

    It is also available through maven central.

    Since version 0.0.4 it helps with following performance practices.

    1. Minimize HTTP requests - can serve multiple JS/CSS files in one request
    2. Client Side Caching - adds proper Cache-Control, Expires header
    3. On the fly JS/CSS minification - using YUICompressor
    4. Compression - supports 2way compression for gzip/deflate/compress encodings
    5. Response Caching at Server - to avoid reprocessing of unchanged resources
    6. Add Character Encoding - to let browser know in advance

提交回复
热议问题