Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    We do indeed concatenate all Jetpack’s CSS files into a master file, jetpack.css. Since that file includes CSS for multiple modules, it has to be loaded all the time, instead of just when a specific module is active.

    However, none of the modules you’re using actually need any CSS, so you could add the following in your theme’s functions.php file, or in a functionality plugin to disable Jetpack’s concatenated CSS:

    add_filter( 'jetpack_implode_frontend_css', '__return_false' );

    Once you’ve done so, each CSS file will be added when necessary, when you enable the module.

    Thread Starter hlanggo

    (@hlanggo)

    Thank you again. That is very helpful.

    May I know which modules use jetpack.css ? Just in case, in the future, I decided to use more modules.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Most of the modules inserting things on the frontend of your site use CSS, and thus jetpack.css. Sharing, Widgets, or Related Posts are good examples.

    Thread Starter hlanggo

    (@hlanggo)

    OK, got it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Is it possible to keep jetpack.css from being inserted when not in used?’ is closed to new replies.