You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is such a pity that there is nothing like 'criticalCSS' for JSF. It would be nice to have at least a new component like '<o:criticalStylesheet>'. When this component appears in the header, the CombinedResourceHandler should leave the CSS file inlined and remove all separate stylesheet resources, creating a combined and non-blocking one for all stylesheets.
The non-blocking stylesheet should look as follows: <link rel="preload" href="nonBlockingCombined.css" as="style" onload="this.onload=null;this.rel='stylesheet'"> <noscript><link rel="stylesheet" href="nonBlockingCombined.css"></noscript>
It should have an option, whether the nonBlockingCombined CSS should or should not contain the primefaces stylesheets components.css and layout.css.
The text was updated successfully, but these errors were encountered:
banifou
changed the title
Feature Request: New component <o:criticalStylesheet> Critical CSS
Feature Request: New component <o:criticalStylesheet> for Critical CSS
Apr 11, 2024
It is such a pity that there is nothing like 'criticalCSS' for JSF. It would be nice to have at least a new component like '<o:criticalStylesheet>'. When this component appears in the header, the CombinedResourceHandler should leave the CSS file inlined and remove all separate stylesheet resources, creating a combined and non-blocking one for all stylesheets.
The non-blocking stylesheet should look as follows:
<link rel="preload" href="nonBlockingCombined.css" as="style" onload="this.onload=null;this.rel='stylesheet'"> <noscript><link rel="stylesheet" href="nonBlockingCombined.css"></noscript>
It should have an option, whether the nonBlockingCombined CSS should or should not contain the primefaces stylesheets components.css and layout.css.
The text was updated successfully, but these errors were encountered: