I will continue to work on my plugin but I got WP-Minify somehow working. Now, badly missing function is a way to store file at different location.
1. At file wp-minify.php, line: 71, change the line:
add_action('wp_footer', array($this, 'post_content'));
add_action('wp_footer', array($this, 'post_content'), 20);
I have added a comma and 20 to the line. Thanks to the post on WordPress forum.
This has not worked for me though. But this is useful with the following point.
footer.php file, add the following line:
<!-- WP-Minify JS -->
Remember, the above solution may still fails you when you add the above line below
wp_footer(); function call in
footer.php file. My theme option has added line below that function call and it has failed. I was just lucky that time that I have experimented with that.
Features I missed in WP-Minify plugin:
- Expire time is not working. Various methods to solve that has also failed. Tried by changing the time in wp-minify.php file but no use. Tried by running a query given on forum which also failed. This I can take care by Apache!
I see by default, expiry header is 1 month.
- Storing file at different location. This is needed as I am using Origin Pull for Images, JS and CSS