Primefaces 3.0 Performance of Resource Request

UI Components for JSF
Post Reply
gcameo
Posts: 63
Joined: 02 Mar 2011, 07:38

12 May 2011, 10:04

Hi
Whiles functionally testing my app, I have realised two main resources whose download cause significant
time delays on the loading of pages built with primefaces

These are jquery.js and jquery-ui.js

Is there a way of telling primefaces to use a google or aol CDN hosted version instead of the the one packaged with primefaces jars?
Primefaces version: 3.0-SNAPSHOT

JSF implementation: Mojarra 2.0.4

Server: Glassfish 3.1-beta

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

12 May 2011, 10:40

No, because they contain PrimeFaces extensions.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

12 May 2011, 10:42

Maybe you can create a custom JSF ResourceHandler to point resource urls to another server in your network so resources and faces requests are handled by different machines. Just an idea.

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

12 May 2011, 11:08

No, because they contain PrimeFaces extensions
Extensions in core query.js and query-ui.js? Maybe a separate file for extensions would be better (to be able to exclude core files if needed)?
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

gcameo
Posts: 63
Joined: 02 Mar 2011, 07:38

12 May 2011, 14:00

Maybe you can create a custom JSF ResourceHandler to point resource urls to another server in your network so resources and faces requests are handled by different machines. Just an idea.
That is what I initially thought but was worried the version that come bundled with primefaces will have modifications.

Are there any that we should know about?

Also there is a yui utilities.js that is downloaded. Is this required, as it takes about 800ms to download
Primefaces version: 3.0-SNAPSHOT

JSF implementation: Mojarra 2.0.4

Server: Glassfish 3.1-beta

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

12 May 2011, 15:29

We're replacing YUI with jQuery since one year. For example in 3.0.M2, three more YUI components are replaced by lightweight jQuery code.

We now only have carousel and paginator as YUI which will vanish in the future so we can get rid of utilities.js.

In production, PrimeFaces compresses CSS and JS, JSF caches it and I suggest using GZIP filter to even zip it more.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 28 guests