Title: codealfa's Replies - page 5 | WordPress.org

---

# codealfa

  [  ](https://wordpress.org/support/users/codealfa/)

 *   [Profile](https://wordpress.org/support/users/codealfa/)
 *   [Topics Started](https://wordpress.org/support/users/codealfa/topics/)
 *   [Replies Created](https://wordpress.org/support/users/codealfa/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/codealfa/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/codealfa/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/codealfa/engagements/)
 *   [Favorites](https://wordpress.org/support/users/codealfa/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 61 through 75 (of 105 total)

[←](https://wordpress.org/support/users/codealfa/replies/page/4/?output_format=md)
[1](https://wordpress.org/support/users/codealfa/replies/?output_format=md) [2](https://wordpress.org/support/users/codealfa/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/codealfa/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/codealfa/replies/page/4/?output_format=md)
5 [6](https://wordpress.org/support/users/codealfa/replies/page/6/?output_format=md)
[7](https://wordpress.org/support/users/codealfa/replies/page/7/?output_format=md)
[→](https://wordpress.org/support/users/codealfa/replies/page/6/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JCH Optimize] CSS Formatting](https://wordpress.org/support/topic/css-formatting-4/)
 *  Plugin Author [codealfa](https://wordpress.org/support/users/codealfa/)
 * (@codealfa)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-formatting-4/#post-6274162)
 * Hmm. I don’t think so. I’ve never heard of that issue before on a Mac. I’ll look
   back at that function though and see how I can get it working a bit smoother.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JCH Optimize] CSS Formatting](https://wordpress.org/support/topic/css-formatting-4/)
 *  Plugin Author [codealfa](https://wordpress.org/support/users/codealfa/)
 * (@codealfa)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-formatting-4/#post-6274124)
 * Hmm, can’t think of anything. I’ve checked this function and it works so maybe
   it’s an issue on your site.
 * Do you want me to check this on your site for you? That’s the only other thing
   I can do now. If you have a subscription you can submit a ticket with admin access
   and I’ll check it for you. Also FTP access too if you want me to check why there’s
   no dropdown.
 * If you don’t have a subscription send me a mail at info[at]jch-optimize.net and
   I’ll send you a login that will give you access to the ticket system.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JCH Optimize] CSS Formatting](https://wordpress.org/support/topic/css-formatting-4/)
 *  Plugin Author [codealfa](https://wordpress.org/support/users/codealfa/)
 * (@codealfa)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-formatting-4/#post-6274084)
 * If you’re copying and pasting the url try typing it in instead. Sometimes when
   you paste it, it doesn’t quite ‘register’. I’ll check out the issue of no dropdown
   of css files.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JCH Optimize] CSS Formatting](https://wordpress.org/support/topic/css-formatting-4/)
 *  Plugin Author [codealfa](https://wordpress.org/support/users/codealfa/)
 * (@codealfa)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-formatting-4/#post-6273956)
 * Have you tried different settings to see if it works on any of the settings? 
   Try the Minimum setting.
 * I suspect you may have some parsing errors in one or more of your CSS files so
   when the files are minified then it causes problems.
 * Refer to this article in the section on resolving CSS conflicts to see how to
   check your CSS files for parsing errors:
    [https://www.jch-optimize.net/documentation/tutorials/how-to-resolve-conflicts-with-third-party-extensions.html](https://www.jch-optimize.net/documentation/tutorials/how-to-resolve-conflicts-with-third-party-extensions.html)
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[JCH Optimize] Didn't see any change](https://wordpress.org/support/topic/didnt-see-any-change/)
 *  Plugin Author [codealfa](https://wordpress.org/support/users/codealfa/)
 * (@codealfa)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/didnt-see-any-change/#post-7971182)
 * You need to check if the plugin is running. The most likely reason would be caching
   so be sure to flush your cache and disable your caching plugin while configuring
   JCH Optimize.
 * Check the source of the page for the JCH generated combined file. It looks like
   this:
    `http://yourwebsite.com/wp-content/plugins/jch-optimize/assets/wp-content/
   plugins/gz/30/0/381259820a40ccb26059b76d87c406a7.css`
 * If you’re not seeing that turn on ‘Log caught exceptions’ in Advanced Options
   and check for logs in /wp-content/plugins/jch-optimize/logs/jch-optimize.log 
   and the log would tell you why the plugin didn’t run. Try to correct the issue
   and try the plugin again.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JCH Optimize] Plugin caused 404 error for all posts](https://wordpress.org/support/topic/plugin-caused-404-error-for-all-posts/)
 *  Plugin Author [codealfa](https://wordpress.org/support/users/codealfa/)
 * (@codealfa)
 * [11 years ago](https://wordpress.org/support/topic/plugin-caused-404-error-for-all-posts/#post-6174861)
 * Ok good to know.
 * Is the plugin working properly now or you didn’t bother to try again? Maybe you
   can try it on a test site first.
 * I can’t think of how the plugin could cause that so I suspect it might have been
   something else coincidentally at that time.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JCH Optimize] Error on activating plugin](https://wordpress.org/support/topic/error-on-activating-plugin-3/)
 *  Plugin Author [codealfa](https://wordpress.org/support/users/codealfa/)
 * (@codealfa)
 * [11 years ago](https://wordpress.org/support/topic/error-on-activating-plugin-3/#post-6147831)
 * Ok great so this confirms what I was thinking about the server. Well happy to
   know it’s resolved.
 * Regards.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JCH Optimize] Compatilbity with caching plugins](https://wordpress.org/support/topic/compatilbity-with-caching-plugins/)
 *  Plugin Author [codealfa](https://wordpress.org/support/users/codealfa/)
 * (@codealfa)
 * [11 years ago](https://wordpress.org/support/topic/compatilbity-with-caching-plugins/#post-6137510)
 * I don’t know why you have completely ignored and disregarded what I have said
   about encountering cases where the callback doesn’t work as expected. This works
   well if the buffers are properly nested. The PHP Manual also points this out.
 * [http://php.net/ob_start/](http://php.net/ob_start/)
    _“Output buffers are stackable,
   that is, you may call ob\_start() while another ob\_start() is active. Just make
   sure that you call ob\_end\_flush() the appropriate number of times.”_
 * In WordPress you can’t guarantee that this will be the case when users can install
   any number of arbitrary plugins that are doing all sorts of things with buffering.
   These plugins are hooking into all manner of different actions and have little
   control of the order in which hooked actions are called with respect to all the
   other plugins.
 * If using the callback works for the other plugins then that’s fine. You may consider
   what I’m doing to be unorthodox but for me “to do this correctly” means to do
   it in a way that works. I’ve tested it with GatorCache and other plugins using
   output buffering and it works in all scenarios when the callback fails in some.
 * Have you tested the latest version at all? As I have already stated I am also
   interested in having the plugin compatible with other plugins, not just GatorCache,
   so confirming whether this works or not for you would be more helpful than insisting
   I write codes in a particular way.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JCH Optimize] Error on activating plugin](https://wordpress.org/support/topic/error-on-activating-plugin-3/)
 *  Plugin Author [codealfa](https://wordpress.org/support/users/codealfa/)
 * (@codealfa)
 * [11 years ago](https://wordpress.org/support/topic/error-on-activating-plugin-3/#post-6147810)
 * Did you check your host for assistance on this? This is more of a server issue
   because the plugin works on other servers. Check if there’s some restriction 
   on your server regarding plugins creating and saving files and folders on the
   server.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JCH Optimize] Lazy Load Images, images not showing up directly in Widgets](https://wordpress.org/support/topic/lazy-load-images-images-not-showing-up-directly-in-widgets/)
 *  Plugin Author [codealfa](https://wordpress.org/support/users/codealfa/)
 * (@codealfa)
 * [11 years ago](https://wordpress.org/support/topic/lazy-load-images-images-not-showing-up-directly-in-widgets/#post-6032614)
 * Ok I’m glad to know your issues are resolved. Be sure to let me know if you have
   any more issues.
 * Regards.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JCH Optimize] Lazy Load Images, images not showing up directly in Widgets](https://wordpress.org/support/topic/lazy-load-images-images-not-showing-up-directly-in-widgets/)
 *  Plugin Author [codealfa](https://wordpress.org/support/users/codealfa/)
 * (@codealfa)
 * [11 years ago](https://wordpress.org/support/topic/lazy-load-images-images-not-showing-up-directly-in-widgets/#post-6032612)
 * As a subscriber, if you can provide admin access you can submit a private ticket
   on the website and I’ll configure it for you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JCH Optimize] Error on activating plugin](https://wordpress.org/support/topic/error-on-activating-plugin-3/)
 *  Plugin Author [codealfa](https://wordpress.org/support/users/codealfa/)
 * (@codealfa)
 * [11 years ago](https://wordpress.org/support/topic/error-on-activating-plugin-3/#post-6147631)
 * It seems the plugin is having some trouble creating or accessing the plugin’s
   cache folder on your server. Maybe you can try to create it manually and make
   sure the folder has correct permissions.
 * The plugin’s cache directory is at /wp-content/cache/jch-optimize/
 * Normally the permissions of the folder should be 755 but check with your host
   to confirm what permissions you need to set for the plugin to access this folder.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JCH Optimize] Lazy Load Images, images not showing up directly in Widgets](https://wordpress.org/support/topic/lazy-load-images-images-not-showing-up-directly-in-widgets/)
 *  Plugin Author [codealfa](https://wordpress.org/support/users/codealfa/)
 * (@codealfa)
 * [11 years ago](https://wordpress.org/support/topic/lazy-load-images-images-not-showing-up-directly-in-widgets/#post-6032611)
 * Thank you for your review. It’s much appreciated. I’m happy you find the plugin
   useful and beneficial.
 * Did you try excluding the images from Lazy Load as I suggested before? The images
   don’t generally wait for you to scroll in order to show. Once they’re above the
   fold they should show. If the images are in some way manipulated by javascript
   then it’s likely it will conflict with the Lazy Load function so in those cases
   you should exclude them.
 * There’s an option ‘Exclude these images from lazy loading’ in the Exclude Options
   on the Pro Options tab. You should be able to select the images you want to exclude
   from the drop down list. If they’re not there you can add them by typing the 
   full url to the image in the textbox and click the ‘Add item’ button then save
   your settings.
 * It is highly recommended that you use a caching plugin along with JCH Optimize
   to further reduce your page load time. JCH Optimize does front-end optimizations
   by making changes to your HTML to make it download faster. A caching plugin will
   help your server to respond faster by caching the HTML so the website don’t have
   to build it from scratch each time.
 * I released a new version today so make sure you update your plugin because this
   one should resolve some compatibility issues with caching plugins.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JCH Optimize] Compatilbity with caching plugins](https://wordpress.org/support/topic/compatilbity-with-caching-plugins/)
 *  Plugin Author [codealfa](https://wordpress.org/support/users/codealfa/)
 * (@codealfa)
 * [11 years ago](https://wordpress.org/support/topic/compatilbity-with-caching-plugins/#post-6137487)
 * Update released with compatibility with caching plugins.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JCH Optimize] Compatilbity with caching plugins](https://wordpress.org/support/topic/compatilbity-with-caching-plugins/)
 *  Plugin Author [codealfa](https://wordpress.org/support/users/codealfa/)
 * (@codealfa)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/compatilbity-with-caching-plugins/#post-6137448)
 * I just thought I’d give one use case scenario that I’ve encountered where the
   callback implementation does not work for me. Remember I need the full HTML in
   order for the plugin to work:
 *     ```
       ob_start('my_optimizing_function');
   
       echo '<html>';
       echo '<head></head>';
       echo '<body>';
       echo '<pre>Hello World</pre>';
   
       ob_end_flush();
   
       echo '<pre>Hello again world</pre>';
       echo '</body>';
       echo '</html>';
   
       function my_optimizing_function($html)
       {
               $buffer = '<!--Optimization start-->' . "\n";
               $buffer .= $html . "\n";
               $buffer .= '<!--Optimization ends-->' . "\n";
   
               return $buffer;
       }
       ```
   
 * Will return:
 *     ```
       <!--Optimization start-->
       <html><head></head><body><pre>Hello World</pre>
       <!--Optimization ends-->
       <pre>Hello again world</pre></body></html>
       ```
   
 * With my solution:
 *     ```
       ob_start();
   
       echo '<html>';
       echo '<head></head>';
       echo '<body>';
       echo '<pre>Hello World</pre>';
   
       ob_end_flush();
   
       echo '<pre>Hello again world</pre>';
       echo '</body>';
       echo '</html>';
   
       $sHtml = '';
   
       while (ob_get_level())
       {
               $sHtml = ob_get_clean() . $sHtml;
   
               ob_start();
   
               if($sHtml)
               {
                       break;
               }
       }
   
       echo my_optimizing_function($sHtml);
   
       function my_optimizing_function($html)
       {
               $buffer = '<!--Optimization start-->' . "\n";
               $buffer .= $html . "\n";
               $buffer .= '<!--Optimization ends-->' . "\n";
   
               return $buffer;
       }
       ```
   
 * returns:
 *     ```
       <!--Optimization start-->
       <html><head></head><body><pre>Hello World</pre><pre>Hello again world</pre></body></html>
       <!--Optimization ends-->
       ```
   
 * And there are others.
 * My solution is also compatible with your plugin:
 *     ```
       ob_start('my_cache_function');
       ob_start();//Optimization buffer starts
   
       echo '<pre>Hello World</pre>';
   
       $sHtml = '';
   
       while (ob_get_level())
       {
               $sHtml = ob_get_clean() . $sHtml;
   
               ob_start();
   
               if($sHtml)
               {
                       break;
               }
       }
   
       echo my_optimizing_function($sHtml);
   
       function my_optimizing_function($html)
       {
               return $html . "\n" . '<!-- Optimized by great optimizer -->';
       }
   
       function my_cache_function($html)
       {
               return $html . "\n" . '<!-- Cached by mighty cacher -->';
       }
       ```
   
 * returns:
 *     ```
       <pre>Hello World</pre>
       <!-- Optimized by great optimizer -->
       <!-- Cached by mighty cacher -->
       ```
   
 * Of course, if you need the full HTML for your plugin to work correctly too then
   your plugin will fail in the first scenario.

Viewing 15 replies - 61 through 75 (of 105 total)

[←](https://wordpress.org/support/users/codealfa/replies/page/4/?output_format=md)
[1](https://wordpress.org/support/users/codealfa/replies/?output_format=md) [2](https://wordpress.org/support/users/codealfa/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/codealfa/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/codealfa/replies/page/4/?output_format=md)
5 [6](https://wordpress.org/support/users/codealfa/replies/page/6/?output_format=md)
[7](https://wordpress.org/support/users/codealfa/replies/page/7/?output_format=md)
[→](https://wordpress.org/support/users/codealfa/replies/page/6/?output_format=md)