Jun 222012
 

While trying to find a suitable minify php script for WordPress, I came across this post by Dean Adjie Minwarie.

According to Dean by pasting his code into your WordPress child themes functions.php, you can gain the performance increase offered by minified code.

And in this case the result was that it worked a treat, your mileage may vary. This was tested by adding Dean’s code into three different child themes. Some themes may need ‘protected $compress_js = false;’ to work as intended but the overall benefit in terms of page size is positive.

Minification is the process of removing unnecessary characters from source code, without changing its functionality. These unnecessary characters usually include white space characters, new line characters and comments, which are used to add readability to the code but are not required for it to execute.

Minified source code is especially useful for interpreted languages deployed and transmitted on the Internet, because it reduces the amount of data that needs to be transferred.

5,955 total views, 1 views today

 Leave a Reply

*

© 2011 Indimon Internet Services

Site last updated March 11, 2017 @ 9:57 am; This content last updated July 12, 2012 @ 8:08 pm

Return to Top ▲Return to Top ▲