Title: Need more rigorous minification algorithm?
Last modified: August 22, 2016

---

# Need more rigorous minification algorithm?

 *  Resolved [koroikoroi](https://wordpress.org/support/users/koroikoroi/)
 * (@koroikoroi)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/need-more-rigorous-minification-algorithm/)
 * Hi,
 * I evaluated my website on Google PageSpeed and it still recommends me to minify
   my JS/CSS files even though the files have been minified using this plugin.
 * So I checked the files. Although most things seem to have been minified, but 
   I still see some irrelevant code such as comments. Perhaps we need more rigorous
   minification algorithm in order to increase efficiency even further and in order
   to pass PageSpeed tests?
 * Thanks
 * [https://wordpress.org/plugins/bwp-minify/](https://wordpress.org/plugins/bwp-minify/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Khang Minh](https://wordpress.org/support/users/oddoneout/)
 * (@oddoneout)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/need-more-rigorous-minification-algorithm/#post-5410866)
 * Can you post an example of comments you saw?
 *  Thread Starter [koroikoroi](https://wordpress.org/support/users/koroikoroi/)
 * (@koroikoroi)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/need-more-rigorous-minification-algorithm/#post-5410867)
 * Thanks for the response.
 * You can see it on [https://www.tripletremelo.com/wp-content/plugins/bwp-minify/min/?f=wp-includes/css/dashicons.min.css,wp-includes/js/thickbox/thickbox.css,wp-content/plugins/wysija-newsletters/css/validationEngine.jquery.css,wp-content/plugins/yet-another-related-posts-plugin/style/widget.css,wp-content/plugins/wpsocialite/lib/wpsocialite.css,wp-content/plugins/easy-modal/assets/styles/easy-modal-site.css,wp-content/plugins/contact-form-7/includes/css/styles.css,wp-content/plugins/member-tweeting/style/jquery-ui.css,wp-content/plugins/member-tweeting/style/calendrical.css,wp-content/plugins/member-tweeting/style/custom.css,wp-content/plugins/wp-to-twitter/css/twitter-feed.css,wp-content/plugins/advanced-responsive-video-embedder/public/assets/css/public.css,wp-content/themes/organic_news/style.css,wp-content/themes/organic_news-child/style.css&ver=1413944213](https://www.tripletremelo.com/wp-content/plugins/bwp-minify/min/?f=wp-includes/css/dashicons.min.css,wp-includes/js/thickbox/thickbox.css,wp-content/plugins/wysija-newsletters/css/validationEngine.jquery.css,wp-content/plugins/yet-another-related-posts-plugin/style/widget.css,wp-content/plugins/wpsocialite/lib/wpsocialite.css,wp-content/plugins/easy-modal/assets/styles/easy-modal-site.css,wp-content/plugins/contact-form-7/includes/css/styles.css,wp-content/plugins/member-tweeting/style/jquery-ui.css,wp-content/plugins/member-tweeting/style/calendrical.css,wp-content/plugins/member-tweeting/style/custom.css,wp-content/plugins/wp-to-twitter/css/twitter-feed.css,wp-content/plugins/advanced-responsive-video-embedder/public/assets/css/public.css,wp-content/themes/organic_news/style.css,wp-content/themes/organic_news-child/style.css&ver=1413944213)
 * Search for “/*! jQuery UI” (without the quotes)
 * Thanks
 *  Plugin Author [Khang Minh](https://wordpress.org/support/users/oddoneout/)
 * (@oddoneout)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/need-more-rigorous-minification-algorithm/#post-5410939)
 * Oh, those comments are left untouched in order to respect the license of individual
   3rd party libraries you’re using. Generally they should not affect your page 
   speed score. Check your site again for any media files that are not minified,
   perhaps some are printed directly and not via WordPress’s enqueueing functions.
 *  Thread Starter [koroikoroi](https://wordpress.org/support/users/koroikoroi/)
 * (@koroikoroi)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/need-more-rigorous-minification-algorithm/#post-5410942)
 * Thanks for the response.
 * I just double checked. The only file that was “complained” by Google PageSpeed
   was the mentioned file above (the one generated by BWM).
 * You can see this by going to [https://developers.google.com/speed/pagespeed/insights/](https://developers.google.com/speed/pagespeed/insights/)
 * Then enter: [https://www.tripletremelo.com/](https://www.tripletremelo.com/)
 *  Plugin Author [Khang Minh](https://wordpress.org/support/users/oddoneout/)
 * (@oddoneout)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/need-more-rigorous-minification-algorithm/#post-5410950)
 * Try turning on Friendly minify feature. Can you post the PageSpeed complaint 
   here? I can’t install that tool at the moment.
 *  Thread Starter [koroikoroi](https://wordpress.org/support/users/koroikoroi/)
 * (@koroikoroi)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/need-more-rigorous-minification-algorithm/#post-5410951)
 * Did you mean the friendly minify URLs feature? If so, I couldn’t enable this 
   because whenever I do this, my page refers to non-existent CSS/JS files.
 * For example, it refers to [https://www.tripletremelo.com/wp-content/plugins/bwp-minify/cache/minify-b1-dashicons-2adbb1833811cfd5c409e3abe762a049.css?ver=1416269672](https://www.tripletremelo.com/wp-content/plugins/bwp-minify/cache/minify-b1-dashicons-2adbb1833811cfd5c409e3abe762a049.css?ver=1416269672)
   but the CSS file doesn’t exist (got a page not found error).
 * Anyway, I usually just run the analysis online, so never had to install anything.
   Here’s the PageSpeed complaint:
 * =====
    Compacting JavaScript code can save many bytes of data and speed up downloading,
   parsing, and execution time.
 * Minify JavaScript for the following resources to reduce their size by 1.1KiB (
   2% reduction).
 * Minifying [https://www.tripletremelo.com/…ber-tweeting/js/custom.js&ver=1415601409](https://www.tripletremelo.com/…ber-tweeting/js/custom.js&ver=1415601409)
   could save 1.1KiB (2% reduction) after compression.
    =====
 * Note that the URL above was truncated, but when I mouse over it, there’s a tooltip
   that displays the full URL “[https://www.tripletremelo.com/wp-content/plugins/bwp-minify/min/?f=wp-includes/js/jquery/jquery.js,wp-includes/js/jquery/jquery-migrate.min.js,wp-content/plugins/anti-spam/js/anti-spam.js,wp-content/themes/organic_news/js/jquery.loadPosts.js,wp-content/plugins/member-tweeting/js/jquery.charcount.js,wp-content/plugins/member-tweeting/js/jquery.charcount.init.js,wp-content/plugins/member-tweeting/js/jquery-ui.js,wp-content/plugins/member-tweeting/js/jquery.calendrical.js,wp-content/plugins/member-tweeting/js/jquery.block.ui.js,wp-content/plugins/member-tweeting/js/custom.js&ver=1415601409&#8221](https://www.tripletremelo.com/wp-content/plugins/bwp-minify/min/?f=wp-includes/js/jquery/jquery.js,wp-includes/js/jquery/jquery-migrate.min.js,wp-content/plugins/anti-spam/js/anti-spam.js,wp-content/themes/organic_news/js/jquery.loadPosts.js,wp-content/plugins/member-tweeting/js/jquery.charcount.js,wp-content/plugins/member-tweeting/js/jquery.charcount.init.js,wp-content/plugins/member-tweeting/js/jquery-ui.js,wp-content/plugins/member-tweeting/js/jquery.calendrical.js,wp-content/plugins/member-tweeting/js/jquery.block.ui.js,wp-content/plugins/member-tweeting/js/custom.js&ver=1415601409&#8221);
 * Thanks
 *  Plugin Author [Khang Minh](https://wordpress.org/support/users/oddoneout/)
 * (@oddoneout)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/need-more-rigorous-minification-algorithm/#post-5410953)
 * I’m not sure why PageSpeed is complaining, but that resource is compressed for
   sure (content-encoding is gzip). The size reduction is negligible so I think 
   you can ignore this complaint.
 *  Thread Starter [koroikoroi](https://wordpress.org/support/users/koroikoroi/)
 * (@koroikoroi)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/need-more-rigorous-minification-algorithm/#post-5410954)
 * It says “Minifying [https://www.tripletremelo.com/…anic_news-child/style.css&ver=1416853341](https://www.tripletremelo.com/…anic_news-child/style.css&ver=1416853341)
   could save 624B (2% reduction) after compression.”, so it is referring to minification,
   not compression.
 * You’re right the reduction is not significant, but the warning is distracting
   because we will always have to double check to see if it’s a real warning or 
   neglectable warning. So ideally, we should get rid of the warning so that it’s
   easier to focus on the other issues.
 * Thanks
 *  Plugin Author [Khang Minh](https://wordpress.org/support/users/oddoneout/)
 * (@oddoneout)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/need-more-rigorous-minification-algorithm/#post-5410965)
 * Oh, those are directly printed scripts/styles, which BWP Minify won’t be able
   to handle. I guess you’d have to live with that or try W3 Total Cache, it can
   minify virtually everything.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Need more rigorous minification algorithm?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bwp-minify.svg)
 * [Better WordPress Minify](https://wordpress.org/plugins/bwp-minify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bwp-minify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bwp-minify/)
 * [Active Topics](https://wordpress.org/support/plugin/bwp-minify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bwp-minify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bwp-minify/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Khang Minh](https://wordpress.org/support/users/oddoneout/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/need-more-rigorous-minification-algorithm/#post-5410965)
 * Status: resolved