Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Andy Fragen

    (@afragen)

    From looking at your page source it appears as if you have some code that strips any query arg from a URL in your headers.

    Category Colors stylesheet appears as a query arg because it’s pulled from the database.

    Do you have some plugin or code that “speeds up” you site or “improves the Pingdom or GTmetrix scores?

    Thread Starter Arnaud Yhuel

    (@mediamiu)

    Thanks a lot! I’ve forgot this code on functions.php that remove query strings from URl to allow servers to cache query strings.

    function _remove_script_version( $src ){
      $parts = explode( '?', $src );
      return $parts[0];
    }
    add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );
    add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );

    It works!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CSS loading issue’ is closed to new replies.