New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get rid of "Combine CSS files" option #5909
Comments
Scope a solutionThe first step will be to get rid of the actual settings section. We will have to remove the logic inside Minify CSS:
if ( $this->options->get( 'minify_css' ) && $this->options->get( 'minify_concatenate_css' ) ) {
$this->set_processor_type( new Combine( $this->options, $assets_local_cache ) );
} elseif ( $this->options->get( 'minify_css' ) && ! $this->options->get( 'minify_concatenate_css' ) ) {
$this->set_processor_type( new Minify( $this->options, $assets_local_cache ) );
} to : if ( $this->options->get( 'minify_css' ) ) {
$this->set_processor_type( new Minify( $this->options, $assets_local_cache ) );
}
Then we will have to remove everywhere this code is used in the core logic:
Then we will have to remove it inside 3rd parties:
To clean assets from wpr on update, we will clear the cache. Finally we will have to make sure all tests pass. Estimate effortEffort |
The combine CSS feature actually helps with SEO. Allowing GoogleBot to crawl less CSS/JS files is ALWAYS a good thing. While minifying files is good for performance, you still have a similar amount of individual CSS files (i.e. http requests) which GoogleBot (or bing etc) will need to crawl, thus using precious crawl budget. Not sure who signed this off, or why it got worked/released so quickly considering there are plenty of other bug fixes and features missing. |
Agreed with @rorydesign - the combine CSS feature is essential (and ultimately could be disabled in the UI if someone doesn't want to use it). Our site structure uses a dynamic set of small css files, but combining them allowed for much better performance and page load times. With this feature removed, we are getting much longer page loads and have had to rollback to a previous version. |
Many factors motivated the change:
@scottstanford would you mind sending me the audit results from https://www.webpagetest.org/ to adame@wp-media.me for combined vs. no combined? I'll be curious to see the impact on your specific use case.
@rorydesign using Remove Unused CSS will have a similar effect. We understand that this change won't be to the taste of some of our users. We apologize for the inconvenience, but it was a necessary step to take on our side. There is room for reconsideration if there is a drastic penalty for the vast majority of our users. |
Bad decision by wp rocket team I improve the performance of websites, I won the first place in the competition to improve the speeds of Cloudways WooCommerce websites I suggest you bring back the Combine CSS feature There are sites where I need to install another plugin that will do this action Secondly, you did something that sometimes things don't work well with the CSS This also caused the broken loading of some icons and fonts on the sites that I am improving the speed of |
@piotrbak FYI, I checked this 👆 with lazyload for CSS background images and it's working fine. Icons are also displayed so this might be coming from Remove Unused CSS if that's enabled. |
Thank you for the feedback, it's very apprieciated. Please remember that we use GitHub for development purposes only. If you experience any performance decrease because of the lack of CSS Combination feature, please reach our Support Team with real data or example, we'll be more than happy to analyze that and find a proper solution. Each decision made is preceded by research and benchmarks. @aharonyltd I'm sorry to hear you are experiencing problem with new feature. Please reach our Support Team, we'll investigate the problem and fix it very soon. |
Is your feature request related to a problem? Please describe.
HTTP/1 is outdated protocol and CSS Combination is only useful in this specific circumstance for performance purposes. It's also good in terms of browser caching, as the single files will be saved and shared between all pages.
Describe the solution you'd like
The further details related to this improvement are available here.
The text was updated successfully, but these errors were encountered: