remove of xforms-yuicalendar-min.js possible?

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

remove of xforms-yuicalendar-min.js possible?

Alexander Gruber-3
Hi together,

I have a question regarding the xforms-yuicalendar-min.js file. It seems to be loaded even I its not used. Is there a way to remove it safely? This would safe me 500kb for every visit.


Thanks for any suggestions!

Alexander Gruber




--
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: remove of xforms-yuicalendar-min.js possible?

Erik Bruchez
Administrator
This is used for XForms processing. It is included automatically only  
if your page contains XForms elements.

Do you see a case where is not needed but included anyway?

-Erik

On Feb 4, 2009, at 9:43 AM, Alexander Gruber wrote:

> Hi together,
>
> I have a question regarding the xforms-yuicalendar-min.js file. It  
> seems to be loaded even I its not used. Is there a way to remove it  
> safely? This would safe me 500kb for every visit.
>
>
> Thanks for any suggestions!
>
> Alexander Gruber
>
>
>
> --
> 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
--
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: Re: remove of xforms-yuicalendar-min.js possible?

Alexander Gruber-3
No. I was just wondering why a calender js file is loaded even if there
is no calender at all.

Thanks for the information!

Best regards

Alexander Gruber

Erik Bruchez schrieb:

> This is used for XForms processing. It is included automatically only
> if your page contains XForms elements.
>
> Do you see a case where is not needed but included anyway?
>
> -Erik
>
> On Feb 4, 2009, at 9:43 AM, Alexander Gruber wrote:
>
>> Hi together,
>>
>> I have a question regarding the xforms-yuicalendar-min.js file. It
>> seems to be loaded even I its not used. Is there a way to remove it
>> safely? This would safe me 500kb for every visit.
>>
>>
>> Thanks for any suggestions!
>>
>> Alexander Gruber
>>
>>
>>
>> --
>> 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
>
> --
> 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: Re: Re: remove of xforms-yuicalendar-min.js possible?

Alessandro Vernet
Administrator
On Feb 5, 2009, at 12:19 AM, Alexander Gruber wrote:

> No. I was just wondering why a calender js file is loaded even if  
> there is no calender at all.


We do try to only include the JavaScript libraries that are needed for  
the controls that you are currently using on the form, but that  
detection is harder in some cases. In particular, for the calendar, as  
long as you have an <xforms:input> on your page, the calendar could be  
used if that input is bound to a node of type xs:date.

Of course, there are ways of finding that there is no possible way  
that any <xforms:input> could ever be bound to a node of type xs:date,  
but this isn't something we are doing right now.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet



--
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