WP Minify
Most USELESS Feature in this Plugin --> "use newlines before 1st attribu (3 posts)

  1. Kimberly
    Posted 4 years ago #

    I decided to give this plugin a try and found an odd feature for its HTML minifier. When you enable HTML minification and check the source of your page you will notice a newline after every tag...huh? Exactly! So this plugin adds more characters than it saves. Its really quite baffling because when you check the php file that is doing this you see the author intended to do this..its not a bug. So i have to assume it was a mental relapse or something.

    By him removing the following from his php code it will improve his plugin. Until then i have removed it on my side and dont intend to update it again:

    // use newlines before 1st attribute in open tags (to limit line lengths)
    $this->_html = preg_replace('/(<[a-z\\-]+)\\s+([^>]+>)/i', "$1\n$2", $this->_html);


  2. Kimberly
    Posted 4 years ago #

    I'm back. Ok after using this plugin more and adding my above "patch" i like the plugin. So i hope the author doesnt think i am bashing his work. He did a great job. It was just the out of place addition in a plugin that is all about minifying.

    There are also a few other bugs like Cache time cant be changed to anything but 900.

  3. gavsiu
    Posted 3 years ago #

    It's not the author of this plugin. It's the php app that they used.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Minify
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.