xforms-min.js

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

xforms-min.js

Adrian Baker
I was suprised to find that even with oxf.xforms.minimal-resources set to true that requests for xforms-min.js was still returning the un-minimal, 336KB xforms.js file.

It seems it's because this line in XFormsFeatures.java doesn't yet specify the minimal version, so it defaults to the full:

    new ResourceConfig("/ops/javascript/xforms.js", null)// TODO: our min version

Is there a reason why xforms-min.js is not specified as the second argument?

Secondly, how are the minimal files generated? If xforms.js is patched then xforms-min.js needs to be regenerated.

Adrian




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: [ops-users] xforms-min.js

Erik Bruchez
Administrator
Adrian Baker wrote:

> I was suprised to find that even with oxf.xforms.minimal-resources set
> to true that requests for xforms-min.js was still returning the
> un-minimal, 336KB xforms.js file.
>
> It seems it's because this line in XFormsFeatures.java doesn't yet
> specify the minimal version, so it defaults to the full:
>
>     new ResourceConfig("/ops/javascript/xforms.js", null)// TODO: our
> min version
>
> Is there a reason why xforms-min.js is not specified as the second argument?
Yes, that's because we don't have a minimal version for xforms.js!

> Secondly, how are the minimal files generated? If xforms.js is patched
> then xforms-min.js needs to be regenerated.

The answer is, it is not generated at the moment.

We tried using a compressor or two back in the days, and the resulting
xforms-min.js didn't work. But it would be great to try again.

This may be a starting point:

   http://del.icio.us/ebruchez/javascript+compression

-Erik

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: [ops-users] xforms-min.js

Adrian Baker
Ah, I see - I was confused by the presence of xforms-min.js under source control: perhaps this should be removed.

Erik Bruchez wrote:
Adrian Baker wrote:
I was suprised to find that even with oxf.xforms.minimal-resources set to true that requests for xforms-min.js was still returning the un-minimal, 336KB xforms.js file.

It seems it's because this line in XFormsFeatures.java doesn't yet specify the minimal version, so it defaults to the full:

    new ResourceConfig("/ops/javascript/xforms.js", null)// TODO: our min version

Is there a reason why xforms-min.js is not specified as the second argument?

Yes, that's because we don't have a minimal version for xforms.js!

Secondly, how are the minimal files generated? If xforms.js is patched then xforms-min.js needs to be regenerated.

The answer is, it is not generated at the moment.

We tried using a compressor or two back in the days, and the resulting xforms-min.js didn't work. But it would be great to try again.

This may be a starting point:

  http://del.icio.us/ebruchez/javascript+compression

-Erik



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws