Web page optimization with Java [closed]

0

What should I look for to optimize performace on the front end, to do css, js etc minimization. keep the head and only change the body? Using Java and Spring MVC, or, with Play and Sparks for example.

    
asked by anonymous 19.07.2016 / 19:42

1 answer

3

In front-end performance, there are many ways to optimize. With http / 1.1 the main ones are:

  • Minimizing and / or concatenating javascript and css files
  • Image Compression to reduce bandwidth usage
  • Image sprite
  • Place the javascripts at the end of the body, as they are blocking resources
  • HTML Compression
  • Static file cache
  • etc ...

To minify JS and CSS files, GRUNT , the same is a task automator. There are many examples on the internet about its use. However, if you're more familiar with java, you can use WRO . which is a tool for optimizing web resources.

With http / 2 some of these practices are not needed, the protocol contains features that provide good performance. It's worth looking into this, a good http server that implements this protocol is the NGINX .

Ex. site with http / 2: link

Finally, a good reference to good site optimization practices is Google Insights Rules . It contains each of the items I mentioned, and is best explained.kkk

    
19.07.2016 / 21:38