• Resolved Martin Kilarski

    (@kmarcink)


    Hi guys,

    I work on the website loads weirdly slow. The load-time varies from 2sec to 9sec without changing anything one the website, but most of the time is around 5-6sec. I have used https://tools.pingdom.com/fpt/ to test the performance and I have noticed that quick-style.php loads at times even 6sec.
    https://prntscr.com/8ebepj

    The website is on the shared server and I use WP Fastest Cache. When I had W3 Total Cache installed the site would load even 60sec, so I had to change it.

    What can make quick-style.php load so slow or how can I stop that file from loading?

    I will appreciate any suggestion on how to fix it.

    URL to the site https://deeswholefoods.com/

    Regards,
    Marcin

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Yes, I can see that file taking around 7 seconds to load. However, it is a file that is part of your theme, “Organic Life”.

    Since that is a premium theme; you’ll need to search for assistance from the theme vendor:
    https://www.themeum.com/questions/

    You could also try switching to a different theme (perhaps the default 2015 theme); just to see if the site loads faster. If it does, you know it’s a theme issue.

    Thread Starter Martin Kilarski

    (@kmarcink)

    Hi Josh,

    Plugins used on the site make quick-style.css load so long. With deactivated plugins it loads normally. So guys from Themeum say that it’s not a theme fault and they don’t do customizations.

    I have already tried adding following code to function.php to prevent the css file from loading. Unfortunately, it didn’t work.

    function dequeue_my_css() {
      wp_dequeue_style('quick-style-css');
      wp_deregister_style('quick-style-css');
    }
    add_action('wp_enqueue_scripts','dequeue_quick-style-css');
    // add a priority if you need it
    // add_action('wp_enqueue_scripts','dequeue_quick-style-css',100);
    
    // Register Style
    function custom_styles() {
    
    	wp_deregister_style( 'quick-style-css' );
    	wp_register_style( 'quick-style-css', '', false, false );
    
    }
    add_action( 'wp_enqueue_scripts', 'custom_styles' );

    Do you know what else could I try to fix that issue?

    Thread Starter Martin Kilarski

    (@kmarcink)

    After modifying the above code, it stopped quick-style.css from loading. Here is the final bit I added to the functions.php file.

    function custom_styles() {
       // remove "-css" at the end of the stylesheet
        wp_deregister_style( 'quick-style' );
        wp_register_style( 'quick-style', '', false, false );
    }
    add_action( 'wp_enqueue_scripts', 'custom_styles' );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Performance issue: quick-style.php makes website load-time super slow’ is closed to new replies.