• Resolved wisam-mo

    (@wisam-mo)


    Hello!

    Minify is adding 1000ms to the server response time!
    disabling it will reduce the service time by 1000ms.

    just to mention i am using this code in functions.php to rename minified files. i am not sure if it’s related!

    add_filter(‘w3tc_minify_urls_for_minification_to_minify_filename’, ‘w3tc_filename_filter’, 20, 3);
    function w3tc_filename_filter($minify_filename, $files, $type ){
    /* better to set versions manually */
    $vers = ’30_6′;
    $minify_filename = $vers.$minify_filename;
    return $minify_filename;
    }

    what’s the problem with minify.
    Thanks!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @wisam-mo

    Thank you for your inquiry and I am happy to assist you with this.
    Can you please share the test results before and after minify enabled?
    Are you on a Shared server or VPS?
    Thanks!

    Thread Starter wisam-mo

    (@wisam-mo)

    we are on dedicated server.
    using https://www.bytecheck.com/
    I get these results:
    – with minify on:
    average: 4100 ms
    – without minify:
    average: 2850 ms

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @wisam-mo

    Thank you for the information. your ttfb is bad in any case.
    Is Page cache enabled and what is the caching method are you using for Page Cache and minify?
    Also, try to disable HTTP2 push save all settings and purge the cache and see the results. Also, make sure to purge Stackpath CDN and see if the ttfb will improve.
    Thanks!

    Thread Starter wisam-mo

    (@wisam-mo)

    Is Page cache enabled and what is the caching method are you using for Page Cache and minify?
    we can’t use page cache, coz we are currently providing country specific content.
    for minify, I am using the automatics setting. and the default settings. using disk minify.
    Thanks!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @wisam-mo

    Thank you for the information.
    Page Caching is reducing the ttfb but I understand your reason.
    There are a couple of things that you can do. Try to disable HTTP/2 push in Performance minify and see if that reduces the load time.
    Also, try manual minify. This will reduce the number of minified files to as singe JS and singe CSS files.
    https://w4a5v2h4.stackpathcdn.com/wp-content/cache/minify/30_6ec6f0.css
    https://w4a5v2h4.stackpathcdn.com/wp-content/cache/minify/30_6c7c41.js
    These files can take up to 1.5 s to load. Excluding a specific JS and CSS files from minifying may help with this as these files are 51/168.4 KB heavy.
    The last thing that you can try is to use memory-based caching for minifying such as Redis or Memcached. Please check with your host and make sure to install PHP modules for Memcached/Redis to be able to use it in W3 Total Cache.
    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Minify adds 1000ms to the page load!’ is closed to new replies.