Hello I just want to start another discussion.

I have been checking the filesizes today of our jsf.js. We currently have 106kbyte compressed. While this is tolerable I would suggest following. I tried a quick test where I stripped out all exeperimental non spec features like the iframe transport the internationalized strings etc...

I came down to 76 kbytes. I probably by even more strict code stripping would come down below 70Kbytes like we used to have before introducing the internationalisation and iframe features.

Now here is are a few proposals:
a) We could externalize all the internationalisation into a separate js file something like myfaces_extras.js. Our code fortunately is structued in a way that this would be easily achievable.

This however would induce a second request. And we would have a documentation problem to notify our users.

b) We could roll a jsf_minimized.js with all the features stripped and we could patch the implementation accordingly, that if this script is included the standard jsf.js is not included anymore.

c) Or we could go vice versa, making line in a the jsf.js the minized version and add a full blown jsf_maximized.js to the mix.

What is your opinon about it. I personally think there must be at least
one minimized version in the system which does not show localized messages etc...

Werner

Reply via email to