• Hello

    I am trying to optimize the load times for a website using the theme Durus. Part of the strategy is to use W3 Total Cache to minify css and js files. Looks like Durus enqueues the stylesheets — they all end with vers=x.x.x, which may be preventing them from being minified by W3. I tested the load times for the original theme and it’s just as bad as my site.

    Can I remove the enqueue_style call without breaking the theme, and then hopefully W3 will be able to do its job? For reference, the code for outputting stylesheets is

    <?php
    	wp_deregister_style( 'style-css' );
    	wp_register_style( 'style-css', get_stylesheet_uri() );
    	wp_enqueue_style( 'style-css' );
    	?>

    Would the same optimizations hold true for the javascript files as well? Thanks in advance!

  • The topic ‘Trying to optimize load times’ is closed to new replies.