Support » Plugin: Jetpack by WordPress.com » Stop genericons.css and jetpack.css from loading on every page, especially home

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

    (@jeherve)

    Jetpack Mechanic 🚀

    You can add the following code to your theme’s functions.php or to a functionality plugin to force Jetpack not to concatenate all its CSS:
    add_filter( 'jetpack_implode_frontend_css', '__return_false' );

    Once you do so, Jetpack will only load each resource on the pages where they’re needed.

    I hope this helps.

    It works! Just curious… why not do this by default in the plug-in?

    Thanks,

    L

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    why not do this by default in the plug-in?

    We ran some tests, and concatenating all the CSS into one file that could be cached and served on all pages of your site ended up being faster thank loading multiple CSS files.

    schecteracademicservices

    (@schecteracademicservices)

    I wish this were the standard. It’s been a mess for me to stop this – just lucky I found this thread.

    It would be great if there were a check box for this, so users could choose whether to load everything or only what is used.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Stop genericons.css and jetpack.css from loading on every page, especially home’ is closed to new replies.