Support » Plugin: Jetpack by WordPress.com » Jetpack with only custom CSS module

  • Resolved frisco

    (@frisco)


    I have an installation where Jetpack development mode is enabled and I have manually deactivated all modules except Custom CSS. Nevertheless, I see the following actions are still being performed:

    Jetpack::check_open_graph
    jetpack_matt_random_redirect
    jetpack_load_theme_compat
    jetpack_load_theme_tools
    Jetpack::extra_oembed_providers
    Jetpack::check_twitter_tags
    Jetpack::check_rest_api_compat
    jetpack_register_genericons
    Jetpack_Comic::init
    Jetpack_Testimonial::init
    Nova_Restaurant::init

    Ignoring devicepx, is there a way via filters to do absolutely nothing except what is required for Custom CSS?

    I’m aware of this Gist to force deactivate all but 1 module, https://gist.github.com/jeherve/7872205. But that is what I have manually done, so I doubt it will get me closer to my goal.

    https://wordpress.org/plugins/jetpack/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ben Lobaugh (blobaugh)

    (@blobaugh)

    Jetpack Engineer

    Hi frisco,

    This is the anticipated, though not very desirable behavior. If you take a look at https://github.com/Automattic/jetpack/blob/master/modules/module-extras.php you will see where this is happening. This file is responsible for loading any code that needs to be available for any other module or theme item to load.

    While I was looking over some other code that led me to that file recently I realized that the filter in that file is being under utilized and we can do a better job of breaking it out so that everything you mentioned can be fine tuned. There is a ticket related to it at https://github.com/Automattic/jetpack/issues/148. I am going to try to knock it out before the next release (3.0).

    Thanks, Ben. I’ll follow the Github issues and make any comments there if appropriate.

    I realize that most of this is minor stuff time-wise. What caught my eye was the Nova_Restaurant::init because a) I happen to be in Northern VA, which is often referred to as “NoVA” and b) have nothing to do with restaurants other than eating in them 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Jetpack with only custom CSS module’ is closed to new replies.