Disabling primeicons has effect on components. Configurable provider? #100
-
It seems disabling auto inclusion of primeicons using context param PRIME_ICONS = false has effect on primefaces components or premium themes / layouts since some components are using primeicons directly. This makes primeicons required to use primefaces. Is this intended? Examples Paginator uses Background We are using font awesome too and would like to stay with this as our primary icon provider since they have a larger variety of icons. For this we can reduce page loading time if we dont load primeicons CSS file. In our case there are three icon sets:
Single icon source / configurable map Would be even greater to reduce this to just a single icon resource to be consistent with look and feel across all components and whole website and would not need the icons to be included in the Maybe a configurable mapping could be provided as a map in context param that components will user internally.
For javascript widget code that map would also need to be provided in js. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yes this is intended. PrimeIcons are the default. I added this switch because at my clients we generate our own theme using Theme Designer and replaced all icons with FontAwesome. So I discovered we were loading primeicons.css even though are app was never using it and wasting network resources for no reason. So I added this switch to give the user the ability to NOT include primeicons.css. You best bet its to do what we did and replaced all See this post where i describe what we do with Babylon premium theme: https://forum.primefaces.org/viewtopic.php?f=98&t=57813 |
Beta Was this translation helpful? Give feedback.
Yes this is intended. PrimeIcons are the default. I added this switch because at my clients we generate our own theme using Theme Designer and replaced all icons with FontAwesome. So I discovered we were loading primeicons.css even though are app was never using it and wasting network resources for no reason. So I added this switch to give the user the ability to NOT include primeicons.css.
You best bet its to do what we did and replaced all
pi
icons withfa
icons in your theme.scss files.See this post where i describe what we do with Babylon premium theme: https://forum.primefaces.org/viewtopic.php?f=98&t=57813