Google PageSpeed with PF 5.2.1

UI Components for JSF
Post Reply
scarsix06d
Posts: 18
Joined: 04 May 2011, 20:49

22 Apr 2015, 16:15

HI!

I'm running https://developers.google.com/speed/pag ... ab=desktop

and the test result was 76 / 100

What can I do for improve it?

Thanks in advance for your replies


Mojarra 2.2.10
PFE 3.0
PF 5.2.1
Tomcat 7,8

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

22 Apr 2015, 16:19

do exactly what google suggest in your app ;) Only reduce css/html/js is related to PrimeFaces.
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

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

22 Apr 2015, 18:39

And even then. Turning on gzip transport compression yields the most and that should be done by you on your server

scarsix06d
Posts: 18
Joined: 04 May 2011, 20:49

24 Apr 2015, 03:10

Thanks @tandraschko

But to reduce css/js is necessary change primefaces source, ok it is not problem... so, the problem is this "Remove the blocking JavaScript and CSS display the contents of the upper half of the page ..."

The idea is load the primefaces resources at the end and not the beginning
It's possible?

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

24 Apr 2015, 10:16

Maybe it is good to actually try to understand what G**gle suggests

The **should fix** is, as I mentioned above, something **you** should configure on your server

The **consider fixing** requires more analysis, but for the one that is (seems to be) PrimeFaces 'framework' related:

The css/javascript IS reduced, Might be that G**gle uses a slightly different algorithm where they can achieve a **little** more reduction. *Not* worth the effort imo.

So that only leaves the moving of the scripts to the end... Well... Don't try to do this yourself. Use omnifaces: http://stackoverflow.com/questions/2317 ... ript-files

djmj
Posts: 400
Joined: 16 Dec 2011, 01:23

26 Apr 2015, 22:47

What Server are you running?

Maybe use a CDN for primefaces related resources.
There is no need to let a JSF Container handle static resources.

I will later update PF 5.2 CDN ready resources
Primefaces: 11.0.0 RC2
Primefaces-Extension: 11.0.0
PrimeFaces-Mobile: 11.0
OmniFaces: 3.11
Jsf: Mojarra 2.3.8
Server: Glassfish 5.1.0

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 55 guests