CSS Tab
How CSS is optimized, which CSS files and styles are left alone or removed, Optimize CSS Delivery and Reduce Unused CSS, and your own Custom CSS.
CSS automatic settings
Set by the automatic settings on the dashboard.
- Optimize CSS Files (WordPress: Combine CSS files)
-
Optimizes CSS files: replaces the links to your CSS files with links to optimized copies.
- Minify CSS
-
Removes unnecessary spaces and comments from CSS.
Default: NoRisk: Low - Replace @imports in CSS
-
Replaces
@importrules in CSS with the contents of the files they import, so the browser doesn't have to fetch them one after another.Default: NoRisk: Medium - Include in-page CSS <style> (WordPress: Include in-page <style>'s)
-
Also optimizes styles written into the page in
<style>elements, keeping their order.Default: NoRisk: Medium
Exclude CSS files
CSS files and styles JCH Optimize leaves untouched. Each entry matches any file or style that contains it. CSS is always excluded while preserving the order of the page. See the section called “Excluding a File That Breaks Something”.
- Exclude CSS files
-
CSS files to leave untouched.
- Exclude CSS files from these extensions (WordPress: Exclude CSS from these plugins)
-
Leaves every CSS file from the chosen extensions, plugins or themes untouched. Choose the folder name.
- Exclude individual internal STYLES declarations (WordPress: Exclude individual in-page <style>'s)
-
Styles written into the page to leave untouched. Enter a distinctive part of the style.
- Exclude all internal STYLE declarations (WordPress: Exclude all in-page <style>s)
-
Leaves every style written into the page untouched.
Default: NoRisk: Low
Remove CSS files
CSS files to stop loading altogether. See the section called “Stop an Unused File from Loading”.
- Remove CSS files
-
CSS files that are not loaded at all, on any page. Make sure no page needs them.
Optimize CSS Delivery
Puts the critical CSS in the page and loads the rest in the background. See the section called “Optimize CSS Delivery”.
- Enable
-
Finds the CSS needed for the part of the page above the fold, puts it in the page, and loads the CSS files in the background.
- Reduce unused CSS Pro
-
Loads only the critical CSS until the visitor interacts with the page, then the rest. Needs Optimize CSS Delivery.
- CSS Dynamic Selectors
-
CSS selectors of elements that appear at the top of the page only after it loads. Their rules are always added to the critical CSS. Fill it with the configure helper; see the section called “Find the CSS Dynamic Selectors”.
- Configure helper
-
Prints the dynamic CSS selectors of the page in the browser console and lets you download them with
downloadDynamicSelectors(). Shown only while Debug Plugin is on. Don't leave it on.Default: No
Custom CSS
Your own CSS, added to every page. Mostly used to reserve space for elements that would otherwise make the page jump. See the section called “Custom CSS: Stop the Page Jumping”.
- Enable
-
Adds the CSS below to every page, as a style of its own at the end of the page's head, after the optimized CSS, so it is never combined with it and its rules win over equally specific ones.
- CSS (WordPress: Global CSS)
-
CSS for every screen size.
Default: EmptyRisk: Low - Mobile
-
CSS for phones only. JCH Optimize adds the media query.
Default: EmptyRisk: Low - Desktop
-
CSS for desktop screens only. JCH Optimize adds the media query.
Default: EmptyRisk: Low
On This Page