You searched for Critical CSS - Porto Documentation https://www.portotheme.com/wordpress/porto/documentation/ Proto Documentation site Tue, 13 Dec 2022 17:44:19 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.2 How to improve site speed https://www.portotheme.com/wordpress/porto/documentation/how-to-improve-site-speed/ https://www.portotheme.com/wordpress/porto/documentation/how-to-improve-site-speed/#respond Wed, 15 Jun 2022 01:33:13 +0000 https://www.portotheme.com/wordpress/porto/documentation/?p=1872 The post How to improve site speed appeared first on Porto Documentation.

]]>

Porto provides Speed Optimize Wizard to improve the site speed. You can make Google Lighthouse general indexes higher as you like but the performance is not. After compiling Speed Optimize Wizard, how can you increase the poor Google Lighthouse Performance on desktop and mobile also. Describe this Faq with insurance Demo. As a direct metric of site performance, not a lot – FCP & LCP

1. How To reduce FCP time.

FCP stands for First Contentful Paint. This metric reflects the time at which the first text or image is painted.
FCP happens when the first text and image elements are rendered. Resources are blocking the first paint of your page. So you should deliver critical JS/CSS inline in head tag and defer all non-critical JS/styles. For this, you should generate Merge js & css in a file & Critical CSS.

Before

FCP

After

FCP-2

2. How To reduce LCP time.

LCP stands for Largest Contentful Paint. This metric reflects the time at which the largest text or image is painted. The reason of low LCP is that largest content is not preloaded or is not shown by javascript execution. You can confirm this factor in the Original Trace. If you find, it’s ok to load unnecessary js in the footer or preload image. When you generate Critical CSS, Porto gathers preload images and fonts. But sometimes Critical CSS engine doesn’t preload some of them. in this case, you have to input image or font in the Speed Optimize Wizard/Performance for preload.

Custom Preload
Preload custom image

Before

LCP

After

After LCP

3. How To improve the performanc on Mobile.

Porto provides Conditional Rendering. On mobile unlike desktop, site doesn’t request the high quality image and complex animations. So that you can rebuild the other section of first screen more easily. Renewable Energy Demo increase the mobile performance over the 90 too.

The post How to improve site speed appeared first on Porto Documentation.

]]>
https://www.portotheme.com/wordpress/porto/documentation/how-to-improve-site-speed/feed/ 0
Critical CSS https://www.portotheme.com/wordpress/porto/documentation/critical-css/ https://www.portotheme.com/wordpress/porto/documentation/critical-css/#respond Fri, 06 May 2022 05:03:54 +0000 https://www.portotheme.com/wordpress/porto/documentation/?p=1718 The post <em class="search-query">Critical CSS</em> appeared first on Porto Documentation.

]]>

Critical css helps you reduce the rendering time.

Probably, your site has too many style codes and not all of them are used at first time. Because of that, they make to only serve the CSS that’s being used on that page and that’s commonly referred to as critical css. After making critical css, the download amount is certainly lower than before and it will improve performance too.

 

Enable Critical Css

There are many features to improve the performance and First Contentful Paint is one of the most important feature. So Generate critical css to reduce the rendering time and get a better speed.

critical
critical css

The post <em class="search-query">Critical CSS</em> appeared first on Porto Documentation.

]]>
https://www.portotheme.com/wordpress/porto/documentation/critical-css/feed/ 0
Porto Speed Optimize Wizard https://www.portotheme.com/wordpress/porto/documentation/porto-speed-optimize-wizard/ https://www.portotheme.com/wordpress/porto/documentation/porto-speed-optimize-wizard/#respond Mon, 15 Oct 2018 02:35:47 +0000 https://www.portotheme.com/wordpress/porto/documentation/?p=97 The post Porto Speed Optimize Wizard appeared first on Porto Documentation.

]]>

Porto comes with it’s own amazing speed optimization tools, you can use these speed optimization tools at Porto > Speed Optimize Wizard. By using this optimizer you can reduce web page resources like js/css files about 500~800 KB for each page compared to other themes.

Speed Optimize Wizard Image

1. WPBakery & Shortcodes

This tool might help you to optimize WPBakery and Porto shortcodes css files by removing unused shortcode styles.

2. Revolution Slider

This tool might help you avoid loading Revolution Slider js/css resources for the pages which don’t use Revolution Slider.

3. Performance

This tool includes several kinds of optimization possibilities.

  1. WordPress JPG Quality – This option might optimize your site by controlling the quality of images.
  2. WordPress Max Image Size (width or height) – This option might optimize your site by setting the threshold for image size.
  3. Lazy Load Images – This option might optimize your site by loading your page resources lazily( In other words, loading your page resources only when really need them ).
  4. Lazy Load Sub Menus – This option might optimize your site by loading your sub menus lazily.
  5. Preload Icon Fonts – This improves page load time since the browser caches preloaded icon fonts.

4. Other Minify

This will help you to set up general optimization settings.

  1. Minify CSS/JS – This will minify all css files which Porto theme generates such as skin, dynamic_style, shortcodes, etc. Also if you check this option, it uses minified javascript files.
  2. Enable Web Font Loader for Google Fonts – By using this option, you can increase page speed about 4 percent in Google PageSpeed Insights for both of mobile and desktop.
  3. Optimize Bootstrap – By using this option, you can use bootstrap features only what Porto theme used. This will reduce around 150KB of page resources.
  4. Optimize FontAwesome – By using this option, you can use fontawesome icons only what Porto theme used. This will reduce around 40KB of page size.
  5. Dequeue Gutenberg block style – By using this option, Gutenberg block styles will not be enqueued if they were not used in the site. This will reduce around 150KB ~ 200KB of page size.
  6. Dequeue Emojis Script – By using this option, you can remove WordPress’ emojis script.
  7. Dequeue jQuery Migrate Script – By using this option, you can disable jQuery migrate script. Please use this option if you are not using any deprecated jQuery code.
  8. Disable Unused Content Types – By disabling unused content types, you can reduce server response time and free up server space by deleting thumbnail files for these content types.
  9. Disable Unused Templates Builders – By disabling unused template builders, you could optimize your websites perfectly.

5. Advanced Optimize

Porto will help you to increase the speed of your site and it offers a poweful yet simple mode of builders only, which means we eliminated all unnecessary and duplicated options.

  1. Disable Mobile Sliders – Disable slider feature for elements in mobile.
  2. Merge javascripts and stylesheets – Compile the dynamic CSS to files (a separate file will be created for each page inside of the uploads folder).
  3. Enable Critical CSS – If you check this option, you can see it in the admin menu. It helps your site to reduce the rendering time and increase the google page speed.
  4. Activate Soft Mode – If you active this mode, most of options are removed. In this mode, you can use only template builders to full-site edit. Theme options and metaboxes that are unnecessary and overridden are removed. You will be no longer disturbed from complicated relationships of options.

The post Porto Speed Optimize Wizard appeared first on Porto Documentation.

]]>
https://www.portotheme.com/wordpress/porto/documentation/porto-speed-optimize-wizard/feed/ 0