Features

Complex scenarios

With WP Shifty you can define complex rulesets - scenarios - easily, to specify where the configured rules should be applied. You can easily combine conditions, but also can use all condition types like an exception.
For example you can disable ON on Frontend EXCEPT on Contact Page

Page

This is one of the most general rule. You can simply select one, or multiple pages where you would like to apply the specified rules (disable CSS/JS, overwrite files or disable plugins).

Post Type

You can specify post types where you can disable resources or even plugins. The condition will met if the current page has one of the selected post types (archive pages included).

Archive

You can specify archive pages (like categories, tags, products, etc...) where you can disable resources or plugins.

Search

You can manage resources and plugins on search result pages.

Authors

You can also manage resources and plugins on author archive pages.

URL

You can set URL conditions which will met, if the current URL is match with the condition. You can use Exact, Partial or Regex mode.

Admin pages

You can specify any Admin page which is accessable in the admin menu. With this you can manage resources and plugins even on admin pages.

AJAX

You can specify AJAX actions, and disable unecessary plugins and speed up AJAX requests.

Shop

If you are using WooCommerce you can use this condition to apply rules on every shop related pages (shop home, cart, checkout, my-account, etc)

Frontpage

This condition will met on the home page (Home URL).

Frontend

With this type of condition you can apply the rules on all frontend pages, except AJAX requests.

Everywhere

This rule will apply everywhere. Usually you should, use it with exceptions. (Eg disable a plugin everywhere except one specific page).

Query String

This type of condition will met if specified GET parameter is present and the value is met with the condition. Use Regex match and (.*) to match any value.

User

You can manage resources or plugins by user roles. For example you can easily disable a plugin for not logged in users, or subscribers, but not for admins.

POST data

This condition will met if the request is exactly match with the specified POST data. It can be useful for example for AJAX requests, or form submissions.

HTTP header

This condition will met if specified HTTP header is present and the value is met with the condition. Use Regex match and (.*) to match any value.

Cookie

Cookie condition will met if specified cookie is present and the value is met with the condition. Use Regex match and (.*) to match any value.

User agent

You can apply rules based on the visitor's user agent. You can use Exact, Partial or Regex mode here.

Device

You can select device types: Desktop, Phone, Tablet, Android, iOS and Bot. The condition will be applied if visitor's device is one of the selected ones.

Cronjob

You can apply rules for WP Cron jobs. It can be useful if you would disable unecessary plugins to decrease the server load, and speed up cronjobs.

CLI

You can apply rules for WP CLI. It can be useful if you would disable unecessary plugins to decrease the server load, and speed up WP CLI.

Manage Plugins

Most WordPress plugins shouldn't run on all pages. For example during AJAX requests usually you need to enable only one plugin which serve the request.

With WP Shifty you can disable plugins for specific scenarios. With this feature you can decrease bloated CSS and JS, reduce TTFB, decrease number of database requests and reduce execution time.

Unlike other similar solutions, with WP Shifty scenarios you can set complex rules, even disable plugins by post type, user role, device, etc.

This feature can help to optimize pages which can not be cached, like speed up admin pages, AJAX requests, cart/checkout pages and load your site faster for logged in users.
Advanced Cron Manager
Contact Form 7
Custom post types
Easy WP SMTP
Elementor Pro
Elementor
Swift Performance
WooCommerce
Yoast SEO
WP Crontrol

Disable Resources

  • https://example.com/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=5.4932 Bytes

Some static resources (CSS or JS) shouldn't be loaded on every pages. However sometimes even WordPress core loads unecessary files, themes and plugins are usually loading many unused assets on every pages.

You can simply disable these assets with single click in Live mode, or you can add complex rules - using exact, partial or regex selectors - in Editor mode.

You can disable even hardcoded resource, also inlined and embedded scripts and styles. Disabling unecessary resources can massively improve the speed of WordPress.

If you need complex rules, you can use the Editor mode. Here you can use partial- or regular expression rules to disable assets on the frontend or in admin.

  • Type
    Match
    • //fonts.googleapis.com/css?family=Roboto%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CRoboto+Slab%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic&ver=5.8.2#038;display=auto&ver=5.8.2
    • //example.com/wp-content/plugins/woocommerce/assets/css/twenty-twenty-one.css?ver=5.1.1
    • https://example.com/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=5.4
    • https://example.com/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-smallscreen.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js?ver=2.70
    • https://example.com/wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.min.js?ver=2.1.4
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/style.css?ver=4.4.3
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/vendors-style.css?ver=4.4.3
    • https://example.com/wp-content/themes/twentytwentyone/assets/css/print.css?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/responsive-embeds.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/style.css?ver=1.1
    • https://example.com/wp-includes/css/dist/block-library/style.min.css?ver=5.8.2
    • https://example.com/wp-includes/js/dist/api-fetch.min.js?ver=134e23b5f88ba06a093f9f92520a98df
    • https://example.com/wp-includes/js/dist/hooks.min.js?ver=a7edae857aab69d69fa10d5aef23a5de
    • https://example.com/wp-includes/js/dist/i18n.min.js?ver=5f1269854226b4dd90450db411a12b79
    • https://example.com/wp-includes/js/dist/url.min.js?ver=d4bdf85a96aa587b52f4b8d58b4457c1
    • https://example.com/wp-includes/js/dist/vendor/lodash.min.js?ver=4.17.19
    • https://example.com/wp-includes/js/dist/vendor/regenerator-runtime.min.js?ver=0.13.7
    • https://example.com/wp-includes/js/dist/vendor/wp-polyfill.min.js?ver=3.15.0
    • https://example.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.3.2
    • https://example.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0
    • https://example.com/wp-includes/js/wp-embed.min.js?ver=5.8.2
    • //fonts.googleapis.com/css?family=Roboto%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CRoboto+Slab%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic&ver=5.8.2#038;display=auto&ver=5.8.2
    • //example.com/wp-content/plugins/woocommerce/assets/css/twenty-twenty-one.css?ver=5.1.1
    • https://example.com/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=5.4
    • https://example.com/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-smallscreen.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js?ver=2.70
    • https://example.com/wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.min.js?ver=2.1.4
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/style.css?ver=4.4.3
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/vendors-style.css?ver=4.4.3
    • https://example.com/wp-content/themes/twentytwentyone/assets/css/print.css?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/responsive-embeds.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/style.css?ver=1.1
    • https://example.com/wp-includes/css/dist/block-library/style.min.css?ver=5.8.2
    • https://example.com/wp-includes/js/dist/api-fetch.min.js?ver=134e23b5f88ba06a093f9f92520a98df
    • https://example.com/wp-includes/js/dist/hooks.min.js?ver=a7edae857aab69d69fa10d5aef23a5de
    • https://example.com/wp-includes/js/dist/i18n.min.js?ver=5f1269854226b4dd90450db411a12b79
    • https://example.com/wp-includes/js/dist/url.min.js?ver=d4bdf85a96aa587b52f4b8d58b4457c1
    • https://example.com/wp-includes/js/dist/vendor/lodash.min.js?ver=4.17.19
    • https://example.com/wp-includes/js/dist/vendor/regenerator-runtime.min.js?ver=0.13.7
    • https://example.com/wp-includes/js/dist/vendor/wp-polyfill.min.js?ver=3.15.0
    • https://example.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.3.2
    • https://example.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0
    • https://example.com/wp-includes/js/wp-embed.min.js?ver=5.8.2
    • //fonts.googleapis.com/css?family=Roboto%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CRoboto+Slab%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic&ver=5.8.2#038;display=auto&ver=5.8.2
    • //example.com/wp-content/plugins/woocommerce/assets/css/twenty-twenty-one.css?ver=5.1.1
    • https://example.com/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=5.4
    • https://example.com/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-smallscreen.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js?ver=2.70
    • https://example.com/wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.min.js?ver=2.1.4
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/style.css?ver=4.4.3
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/vendors-style.css?ver=4.4.3
    • https://example.com/wp-content/themes/twentytwentyone/assets/css/print.css?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/responsive-embeds.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/style.css?ver=1.1
    • https://example.com/wp-includes/css/dist/block-library/style.min.css?ver=5.8.2
    • https://example.com/wp-includes/js/dist/api-fetch.min.js?ver=134e23b5f88ba06a093f9f92520a98df
    • https://example.com/wp-includes/js/dist/hooks.min.js?ver=a7edae857aab69d69fa10d5aef23a5de
    • https://example.com/wp-includes/js/dist/i18n.min.js?ver=5f1269854226b4dd90450db411a12b79
    • https://example.com/wp-includes/js/dist/url.min.js?ver=d4bdf85a96aa587b52f4b8d58b4457c1
    • https://example.com/wp-includes/js/dist/vendor/lodash.min.js?ver=4.17.19
    • https://example.com/wp-includes/js/dist/vendor/regenerator-runtime.min.js?ver=0.13.7
    • https://example.com/wp-includes/js/dist/vendor/wp-polyfill.min.js?ver=3.15.0
    • https://example.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.3.2
    • https://example.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0
    • https://example.com/wp-includes/js/wp-embed.min.js?ver=5.8.2
    • //fonts.googleapis.com/css?family=Roboto%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CRoboto+Slab%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic&ver=5.8.2#038;display=auto&ver=5.8.2
    • //example.com/wp-content/plugins/woocommerce/assets/css/twenty-twenty-one.css?ver=5.1.1
    • https://example.com/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=5.4
    • https://example.com/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-smallscreen.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js?ver=2.70
    • https://example.com/wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.min.js?ver=2.1.4
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/style.css?ver=4.4.3
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/vendors-style.css?ver=4.4.3
    • https://example.com/wp-content/themes/twentytwentyone/assets/css/print.css?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/responsive-embeds.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/style.css?ver=1.1
    • https://example.com/wp-includes/css/dist/block-library/style.min.css?ver=5.8.2
    • https://example.com/wp-includes/js/dist/api-fetch.min.js?ver=134e23b5f88ba06a093f9f92520a98df
    • https://example.com/wp-includes/js/dist/hooks.min.js?ver=a7edae857aab69d69fa10d5aef23a5de
    • https://example.com/wp-includes/js/dist/i18n.min.js?ver=5f1269854226b4dd90450db411a12b79
    • https://example.com/wp-includes/js/dist/url.min.js?ver=d4bdf85a96aa587b52f4b8d58b4457c1
    • https://example.com/wp-includes/js/dist/vendor/lodash.min.js?ver=4.17.19
    • https://example.com/wp-includes/js/dist/vendor/regenerator-runtime.min.js?ver=0.13.7
    • https://example.com/wp-includes/js/dist/vendor/wp-polyfill.min.js?ver=3.15.0
    • https://example.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.3.2
    • https://example.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0
    • https://example.com/wp-includes/js/wp-embed.min.js?ver=5.8.2

Overwrite Resources

https://fonts.googleapis.com/css?family=Open+Sans
In some cases you don't want to disable the whole CSS or JS, but you don't need the rest of it. In these cases you can use the overwrite feature. With this you can overwrite any CSS and javascript files.

For example it can be also useful, if your theme is using Google Fonts, but including it incorrectly, and you would like to add font-display: swap to all font declarations.

You can minify and also can beautify CSS and JS content to be able to edit them.

Preload Resources

Preloading important static files can highly improve Web Vital scores. You can preload CSS, JS, images, video, audio and documents as well. You can also add media query, and preload the right sizes/version for different devices.
    • //fonts.googleapis.com/css?family=Roboto%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CRoboto+Slab%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic&ver=5.8.2#038;display=auto&ver=5.8.2
    • //example.com/wp-content/plugins/woocommerce/assets/css/twenty-twenty-one.css?ver=5.1.1
    • https://example.com/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=5.4
    • https://example.com/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-smallscreen.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js?ver=2.70
    • https://example.com/wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.min.js?ver=2.1.4
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/style.css?ver=4.4.3
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/vendors-style.css?ver=4.4.3
    • https://example.com/wp-content/themes/twentytwentyone/assets/css/print.css?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/responsive-embeds.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/style.css?ver=1.1
    • https://example.com/wp-includes/css/dist/block-library/style.min.css?ver=5.8.2
    • https://example.com/wp-includes/js/dist/api-fetch.min.js?ver=134e23b5f88ba06a093f9f92520a98df
    • https://example.com/wp-includes/js/dist/hooks.min.js?ver=a7edae857aab69d69fa10d5aef23a5de
    • https://example.com/wp-includes/js/dist/i18n.min.js?ver=5f1269854226b4dd90450db411a12b79
    • https://example.com/wp-includes/js/dist/url.min.js?ver=d4bdf85a96aa587b52f4b8d58b4457c1
    • https://example.com/wp-includes/js/dist/vendor/lodash.min.js?ver=4.17.19
    • https://example.com/wp-includes/js/dist/vendor/regenerator-runtime.min.js?ver=0.13.7
    • https://example.com/wp-includes/js/dist/vendor/wp-polyfill.min.js?ver=3.15.0
    • https://example.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.3.2
    • https://example.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0
    • https://example.com/wp-includes/js/wp-embed.min.js?ver=5.8.2
    • //fonts.googleapis.com/css?family=Roboto%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CRoboto+Slab%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic&ver=5.8.2#038;display=auto&ver=5.8.2
    • //example.com/wp-content/plugins/woocommerce/assets/css/twenty-twenty-one.css?ver=5.1.1
    • https://example.com/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=5.4
    • https://example.com/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-smallscreen.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js?ver=2.70
    • https://example.com/wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.min.js?ver=2.1.4
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/style.css?ver=4.4.3
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/vendors-style.css?ver=4.4.3
    • https://example.com/wp-content/themes/twentytwentyone/assets/css/print.css?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/responsive-embeds.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/style.css?ver=1.1
    • https://example.com/wp-includes/css/dist/block-library/style.min.css?ver=5.8.2
    • https://example.com/wp-includes/js/dist/api-fetch.min.js?ver=134e23b5f88ba06a093f9f92520a98df
    • https://example.com/wp-includes/js/dist/hooks.min.js?ver=a7edae857aab69d69fa10d5aef23a5de
    • https://example.com/wp-includes/js/dist/i18n.min.js?ver=5f1269854226b4dd90450db411a12b79
    • https://example.com/wp-includes/js/dist/url.min.js?ver=d4bdf85a96aa587b52f4b8d58b4457c1
    • https://example.com/wp-includes/js/dist/vendor/lodash.min.js?ver=4.17.19
    • https://example.com/wp-includes/js/dist/vendor/regenerator-runtime.min.js?ver=0.13.7
    • https://example.com/wp-includes/js/dist/vendor/wp-polyfill.min.js?ver=3.15.0
    • https://example.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.3.2
    • https://example.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0
    • https://example.com/wp-includes/js/wp-embed.min.js?ver=5.8.2
    • //fonts.googleapis.com/css?family=Roboto%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CRoboto+Slab%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic&ver=5.8.2#038;display=auto&ver=5.8.2
    • //example.com/wp-content/plugins/woocommerce/assets/css/twenty-twenty-one.css?ver=5.1.1
    • https://example.com/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=5.4
    • https://example.com/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-smallscreen.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js?ver=2.70
    • https://example.com/wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.min.js?ver=2.1.4
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/style.css?ver=4.4.3
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/vendors-style.css?ver=4.4.3
    • https://example.com/wp-content/themes/twentytwentyone/assets/css/print.css?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/responsive-embeds.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/style.css?ver=1.1
    • https://example.com/wp-includes/css/dist/block-library/style.min.css?ver=5.8.2
    • https://example.com/wp-includes/js/dist/api-fetch.min.js?ver=134e23b5f88ba06a093f9f92520a98df
    • https://example.com/wp-includes/js/dist/hooks.min.js?ver=a7edae857aab69d69fa10d5aef23a5de
    • https://example.com/wp-includes/js/dist/i18n.min.js?ver=5f1269854226b4dd90450db411a12b79
    • https://example.com/wp-includes/js/dist/url.min.js?ver=d4bdf85a96aa587b52f4b8d58b4457c1
    • https://example.com/wp-includes/js/dist/vendor/lodash.min.js?ver=4.17.19
    • https://example.com/wp-includes/js/dist/vendor/regenerator-runtime.min.js?ver=0.13.7
    • https://example.com/wp-includes/js/dist/vendor/wp-polyfill.min.js?ver=3.15.0
    • https://example.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.3.2
    • https://example.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0
    • https://example.com/wp-includes/js/wp-embed.min.js?ver=5.8.2
    • //fonts.googleapis.com/css?family=Roboto%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CRoboto+Slab%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic&ver=5.8.2#038;display=auto&ver=5.8.2
    • //example.com/wp-content/plugins/woocommerce/assets/css/twenty-twenty-one.css?ver=5.1.1
    • https://example.com/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=5.4
    • https://example.com/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-smallscreen.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js?ver=2.70
    • https://example.com/wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.min.js?ver=2.1.4
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/style.css?ver=4.4.3
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/vendors-style.css?ver=4.4.3
    • https://example.com/wp-content/themes/twentytwentyone/assets/css/print.css?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/responsive-embeds.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/style.css?ver=1.1
    • https://example.com/wp-includes/css/dist/block-library/style.min.css?ver=5.8.2
    • https://example.com/wp-includes/js/dist/api-fetch.min.js?ver=134e23b5f88ba06a093f9f92520a98df
    • https://example.com/wp-includes/js/dist/hooks.min.js?ver=a7edae857aab69d69fa10d5aef23a5de
    • https://example.com/wp-includes/js/dist/i18n.min.js?ver=5f1269854226b4dd90450db411a12b79
    • https://example.com/wp-includes/js/dist/url.min.js?ver=d4bdf85a96aa587b52f4b8d58b4457c1
    • https://example.com/wp-includes/js/dist/vendor/lodash.min.js?ver=4.17.19
    • https://example.com/wp-includes/js/dist/vendor/regenerator-runtime.min.js?ver=0.13.7
    • https://example.com/wp-includes/js/dist/vendor/wp-polyfill.min.js?ver=3.15.0
    • https://example.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.3.2
    • https://example.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0
    • https://example.com/wp-includes/js/wp-embed.min.js?ver=5.8.2

Load behavior

  • https://example.com/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=5.4932 Bytes
    lazyloaded

With WP Shifty you can delay loading specific CSS or javascript files. Both CSS and JS can be loaded lazy, however you can also set embedded scripts to async or defer.

Lazyloaded styles and scripts will be loaded only on user interaction: when the visitor move the mouse, start scrolling, click to an element, or touches the touchscreen.

Async scripts will be loaded and executed asynchronusly, while deferred scripts will be executed only after the whole document has been parsed.

WP Shifty focuses on optimizing the resources, however with load behavior features you can fine tune the load priorities.

If you need complex rules, you can use the Editor mode. Here you can use partial- or regular expression rules to disable assets on the frontend or in admin.

  • Type
    Match
    Match
    • //fonts.googleapis.com/css?family=Roboto%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CRoboto+Slab%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic&ver=5.8.2#038;display=auto&ver=5.8.2
    • //example.com/wp-content/plugins/woocommerce/assets/css/twenty-twenty-one.css?ver=5.1.1
    • https://example.com/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=5.4
    • https://example.com/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-smallscreen.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js?ver=2.70
    • https://example.com/wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.min.js?ver=2.1.4
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/style.css?ver=4.4.3
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/vendors-style.css?ver=4.4.3
    • https://example.com/wp-content/themes/twentytwentyone/assets/css/print.css?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/responsive-embeds.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/style.css?ver=1.1
    • https://example.com/wp-includes/css/dist/block-library/style.min.css?ver=5.8.2
    • https://example.com/wp-includes/js/dist/api-fetch.min.js?ver=134e23b5f88ba06a093f9f92520a98df
    • https://example.com/wp-includes/js/dist/hooks.min.js?ver=a7edae857aab69d69fa10d5aef23a5de
    • https://example.com/wp-includes/js/dist/i18n.min.js?ver=5f1269854226b4dd90450db411a12b79
    • https://example.com/wp-includes/js/dist/url.min.js?ver=d4bdf85a96aa587b52f4b8d58b4457c1
    • https://example.com/wp-includes/js/dist/vendor/lodash.min.js?ver=4.17.19
    • https://example.com/wp-includes/js/dist/vendor/regenerator-runtime.min.js?ver=0.13.7
    • https://example.com/wp-includes/js/dist/vendor/wp-polyfill.min.js?ver=3.15.0
    • https://example.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.3.2
    • https://example.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0
    • https://example.com/wp-includes/js/wp-embed.min.js?ver=5.8.2
    • //fonts.googleapis.com/css?family=Roboto%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CRoboto+Slab%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic&ver=5.8.2#038;display=auto&ver=5.8.2
    • //example.com/wp-content/plugins/woocommerce/assets/css/twenty-twenty-one.css?ver=5.1.1
    • https://example.com/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=5.4
    • https://example.com/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-smallscreen.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js?ver=2.70
    • https://example.com/wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.min.js?ver=2.1.4
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/style.css?ver=4.4.3
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/vendors-style.css?ver=4.4.3
    • https://example.com/wp-content/themes/twentytwentyone/assets/css/print.css?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/responsive-embeds.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/style.css?ver=1.1
    • https://example.com/wp-includes/css/dist/block-library/style.min.css?ver=5.8.2
    • https://example.com/wp-includes/js/dist/api-fetch.min.js?ver=134e23b5f88ba06a093f9f92520a98df
    • https://example.com/wp-includes/js/dist/hooks.min.js?ver=a7edae857aab69d69fa10d5aef23a5de
    • https://example.com/wp-includes/js/dist/i18n.min.js?ver=5f1269854226b4dd90450db411a12b79
    • https://example.com/wp-includes/js/dist/url.min.js?ver=d4bdf85a96aa587b52f4b8d58b4457c1
    • https://example.com/wp-includes/js/dist/vendor/lodash.min.js?ver=4.17.19
    • https://example.com/wp-includes/js/dist/vendor/regenerator-runtime.min.js?ver=0.13.7
    • https://example.com/wp-includes/js/dist/vendor/wp-polyfill.min.js?ver=3.15.0
    • https://example.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.3.2
    • https://example.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0
    • https://example.com/wp-includes/js/wp-embed.min.js?ver=5.8.2
    • //fonts.googleapis.com/css?family=Roboto%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CRoboto+Slab%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic&ver=5.8.2#038;display=auto&ver=5.8.2
    • //example.com/wp-content/plugins/woocommerce/assets/css/twenty-twenty-one.css?ver=5.1.1
    • https://example.com/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=5.4
    • https://example.com/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-smallscreen.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js?ver=2.70
    • https://example.com/wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.min.js?ver=2.1.4
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/style.css?ver=4.4.3
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/vendors-style.css?ver=4.4.3
    • https://example.com/wp-content/themes/twentytwentyone/assets/css/print.css?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/responsive-embeds.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/style.css?ver=1.1
    • https://example.com/wp-includes/css/dist/block-library/style.min.css?ver=5.8.2
    • https://example.com/wp-includes/js/dist/api-fetch.min.js?ver=134e23b5f88ba06a093f9f92520a98df
    • https://example.com/wp-includes/js/dist/hooks.min.js?ver=a7edae857aab69d69fa10d5aef23a5de
    • https://example.com/wp-includes/js/dist/i18n.min.js?ver=5f1269854226b4dd90450db411a12b79
    • https://example.com/wp-includes/js/dist/url.min.js?ver=d4bdf85a96aa587b52f4b8d58b4457c1
    • https://example.com/wp-includes/js/dist/vendor/lodash.min.js?ver=4.17.19
    • https://example.com/wp-includes/js/dist/vendor/regenerator-runtime.min.js?ver=0.13.7
    • https://example.com/wp-includes/js/dist/vendor/wp-polyfill.min.js?ver=3.15.0
    • https://example.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.3.2
    • https://example.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0
    • https://example.com/wp-includes/js/wp-embed.min.js?ver=5.8.2
    • //fonts.googleapis.com/css?family=Roboto%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CRoboto+Slab%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic&ver=5.8.2#038;display=auto&ver=5.8.2
    • //example.com/wp-content/plugins/woocommerce/assets/css/twenty-twenty-one.css?ver=5.1.1
    • https://example.com/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=5.4
    • https://example.com/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/css/woocommerce-smallscreen.css?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js?ver=5.1.1
    • https://example.com/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js?ver=2.70
    • https://example.com/wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.min.js?ver=2.1.4
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/style.css?ver=4.4.3
    • https://example.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/vendors-style.css?ver=4.4.3
    • https://example.com/wp-content/themes/twentytwentyone/assets/css/print.css?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/assets/js/responsive-embeds.js?ver=1.1
    • https://example.com/wp-content/themes/twentytwentyone/style.css?ver=1.1
    • https://example.com/wp-includes/css/dist/block-library/style.min.css?ver=5.8.2
    • https://example.com/wp-includes/js/dist/api-fetch.min.js?ver=134e23b5f88ba06a093f9f92520a98df
    • https://example.com/wp-includes/js/dist/hooks.min.js?ver=a7edae857aab69d69fa10d5aef23a5de
    • https://example.com/wp-includes/js/dist/i18n.min.js?ver=5f1269854226b4dd90450db411a12b79
    • https://example.com/wp-includes/js/dist/url.min.js?ver=d4bdf85a96aa587b52f4b8d58b4457c1
    • https://example.com/wp-includes/js/dist/vendor/lodash.min.js?ver=4.17.19
    • https://example.com/wp-includes/js/dist/vendor/regenerator-runtime.min.js?ver=0.13.7
    • https://example.com/wp-includes/js/dist/vendor/wp-polyfill.min.js?ver=3.15.0
    • https://example.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.3.2
    • https://example.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0
    • https://example.com/wp-includes/js/wp-embed.min.js?ver=5.8.2

Inject HTML

You can also inject arbitary HTML code to any pages (both on frontend on admin) in beginning/end of head/footer, or after the styles in head.
  • <script> console.log('I am injected with Shifty ;)') </script>