primefaces has minimized css/js?

UI Components for JSF
javaone9
Posts: 317
Joined: 06 Nov 2012, 20:50

14 Aug 2015, 03:05

Hello,

Primefaces has minimized version of css/js? minimized version will reduce page loading time.
If no, can we minimize them safely using a tool?

Thanks.

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

14 Aug 2015, 08:18

Did you actually check what is loaded?

Answer: yes

javaone9
Posts: 317
Joined: 06 Nov 2012, 20:50

14 Aug 2015, 20:06

they are not minimized, for example,

primefaces.css/js
jquery-plugins.js
charts.css/js
editor.css/js
....

Is there a way to turn on min version? Or do I need to minimize them and repackage them? The latter would be a hack.

Thanks.

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

14 Aug 2015, 21:29

Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

javaone9
Posts: 317
Joined: 06 Nov 2012, 20:50

15 Aug 2015, 04:28

I am using 5.0. They are minimized for 5.0, or only for the latest version?
Thanks.

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

15 Aug 2015, 09:05

should be since 3.x.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

javaone9
Posts: 317
Joined: 06 Nov 2012, 20:50

15 Aug 2015, 17:45

But the resources of PF 5.0 are not minimized.

I have set project stage to production in web.xml.

Code: Select all

	<context-param>
		<param-name>javax.faces.PROJECT_STAGE</param-name>
		<param-value>Production</param-value>
	</context-param>
Anything else to configure?
Thanks.

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

15 Aug 2015, 18:46

They are minimized.... Just downloaded the jar from: http://search.maven.org/#artifactdetail ... es|5.0|jar
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

javaone9
Posts: 317
Joined: 06 Nov 2012, 20:50

15 Aug 2015, 23:49

I see. I built PF jar from source. any build options for minimizing resources?

Thanks.

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

16 Aug 2015, 02:32

Check the pom, there may be an profile. Don't know without checking it.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 73 guests