Title: jetpack css suggestion devs
Last modified: August 31, 2024

---

# jetpack css suggestion devs

 *  Resolved [Guillermo](https://wordpress.org/support/users/guillermo77/)
 * (@guillermo77)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/jetpack-css-suggestion-devs/)
 * The jetpack.css file is about 18kb.
 * It would be nice if you could minimize it.
   For example, according to the packages
   you install automatically, or manually by applying them in boxes.
 * For example, I use cookies and related posts.
   I only need the .css of those two
   packages.That is saved in jetpack.css and that’s it.
 * If it gives an error, you can manually use the default css or add css packages
   until you fix it.
 * Can be one experimental option.
 * I use UCSS litespeed cache but, give me error, I don’t no because it loads the
   javascript slowly or deferred and does not process the css correctly.
   The combined
   css file works fine, only when processing the UCSS it gives me the layout error.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [Guillermo](https://wordpress.org/support/users/guillermo77/)
 * (@guillermo77)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/jetpack-css-suggestion-devs/#post-17987557)
 * [@jeherve](https://wordpress.org/support/users/jeherve/) can you update this?
 * [https://gist.github.com/jeherve/df4e349a209d532a7978](https://gist.github.com/jeherve/df4e349a209d532a7978)
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [1 year, 9 months ago](https://wordpress.org/support/topic/jetpack-css-suggestion-devs/#post-17989725)
 * Hi there!
 * The file is minified already, and we do have some logic in place so it will not
   be loaded unless you use at least 3 of the features that require CSS that is 
   present in the concatenated CSS file. In your example, if you only use 2 Jetpack
   features (Extra sidebar widgets and Related Posts), the concatenated `jetpack.
   css` file will not be enqueued on your site.
 * If it is currently loaded, it is because you use at least one other feature that
   includes CSS that is available in the concatenated version. For reference, the
   concatenated CSS file currently includes CSS from the following features:
    - Carousel
    - Contact Form
    - Infinite Scroll
    - Likes
    - Related Posts
    - Sharing
    - Shortcode embeds
    - Subscriptions
    - Tiled Galleries
    - Extra Sidebar Widgets
 * If you use a CSS concatenating plugin, I would recommend that you exclude that
   one file from your configuration, to avoid issues when concatenating things twice.
 * In the future, we may iterate on that concatenation feature some more, as you
   suggested, or we may remove it altogether since that type of concatenation is
   less important today than it was when we first introduced this feature in Jetpack
   years ago.
 * Until then, you can indeed use the `jetpack_implode_frontend_css` filter to disable
   concatenation, as explained here:
 * [https://developer.jetpack.com/hooks/jetpack_implode_frontend_css/](https://developer.jetpack.com/hooks/jetpack_implode_frontend_css/)
 * You do not really anything on top of that filter, since each stylesheet is then
   only enqueued on pages where it is needed.
 * I hope this clarifies things a bit.
 *  Thread Starter [Guillermo](https://wordpress.org/support/users/guillermo77/)
 * (@guillermo77)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/jetpack-css-suggestion-devs/#post-17990777)
 * Hola Jeremy!
   You are a genius, your are in another level.
 * Yes I use also Carousel, related and cookies.
   With litespeed cache plugin and
   UCSS give me error layout when the unique CSS process UCSS with jetpack.css, 
   no is compatible, now I understand why.
 * With your old filter (I use) I have the 3 css and maybe can concatenated and 
   use the UCSS without error, I need test and time for process UCSS.
 * With the new filter, I can have 2 or 3 css if I have one gallery
   No will work
   with the litespeed cache, but I can remove from concatenated with jetpack.css
   and /jetpack/modules/ and i will have the necessary css but with more files request.
 * I add for remove in the old filter some infinity scrolls for new themes, I dont
   no if that is correct.
 *     ```wp-block-code
       wp_deregister_style( 'infinity-twentytwentyfour' ); // Infinite Scroll - Twenty 24
       ```
   
 * I reduce like 15kb the jetpack css
   I think the two filters are good, the new 
   automatic is better but no will work with litespeed cache UCSS just that.
 * Th best solution (my case) Is use old filter, concatenated and/or use UCSS litespeed(
   for no have many request files).
   Or auto filter with UCSS and remove the jetpack
   css of concatenated cssIf jetpack can add inline the css just for no have many
   files request, but is ok, I dont no what is better, inline UCSS or 1 or 4 files.
 * Maybe in javascript can be one good idea use the preload for better INP in carousel
   as option?
   The cookie advert now is in english, before some times ago was in 
   spanish automatically, I dont no if is me, one translation problem or script.
   And is one old widget, no is one block.
 * If you know how change the loading circle gallery to one color and can, send 
   me one script or the class color, because the page is white and the loading is
   white, I like blue color. Or add to task list, most websites are white!
 * Thank you for your explanation and time!
   Have a nice day!
 *  Thread Starter [Guillermo](https://wordpress.org/support/users/guillermo77/)
 * (@guillermo77)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/jetpack-css-suggestion-devs/#post-17990783)
 * Post date, maybe i am confusing, this no work true?
 *     ```wp-block-code
       function jeherve_remove_all_jp_css() {wp_deregister_style( 'AtD_style' );                    // After the Deadlineetc
       ```
   
 * So always load the css necessary automatic and no is possible load always the
   3 css for use with litespeed cache.
 *  Thread Starter [Guillermo](https://wordpress.org/support/users/guillermo77/)
 * (@guillermo77)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/jetpack-css-suggestion-devs/#post-17990814)
 * Yes now I understand!! sorry work perfect.
   Just no is posible concatenated or
   put inline, but run ok.
 *  Plugin Support [Alin (a11n)](https://wordpress.org/support/users/alinclamba/)
 * (@alinclamba)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/jetpack-css-suggestion-devs/#post-17998332)
 * Hi [@guillermo77](https://wordpress.org/support/users/guillermo77/),
 * I’m glad to hear that you were able to resolve the issue! Given that everything
   is working now, the thread has been marked as resolved. If anything else comes
   up, please feel free to open a new thread, and we’ll be happy to assist.
 * Best!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘jetpack css suggestion devs’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [speed](https://wordpress.org/support/topic-tag/speed/)

 * 6 replies
 * 3 participants
 * Last reply from: [Alin (a11n)](https://wordpress.org/support/users/alinclamba/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/jetpack-css-suggestion-devs/#post-17998332)
 * Status: resolved