As we have already known, the smaller the Javascript and CSS file size, the faster the web application is loaded. Therefore, that would be better if we compress the Javascript and CSS files that we used, especially those that have been generated by PHPMaker.
Many Javascript and CSS compressor tools provided in Internet have the ability to compress the Javascript and CSS files, but a few to deliver to compress the Javascript and CSS files that generated by PHPMaker correctly and properly. I have tested some of them, and when the compressed files are used, then there are some unpredictable results occured.
The only compressor that I (and you) can trust is the only one that provided by YUI Compressor. When I was writing this article, it used YUI Compressor 2.4.8. You can use this Javascript and CSS compressor tool from: http://refresh-sf.com/yui/. Edited: That site will be replaced soon by http://gpbmike.github.io/refresh-sf/.
I recommend you to use this tool in order to compress your Javascript and CSS files. Based on my experiences, try to leave the most original setting in that website to get the optimum result. In other words, do not change the existing option in that website. All you have to do is to enter the code in Code section, choose the File Type, and then finally, press the Compress button.
Hopefully this would be helpful for you.
Leave a Reply
You must be logged in to post a comment.