Redundant javascripts in the page when clientvalidate="false"
--------------------------------------------------------------
Key: TAPESTRY-1894
URL: https://issues.apache.org/jira/browse/TAPESTRY-1894
Project: Tapestry
Issue Type: Improvement
Components: Core Components
Affects Versions: 5.0.6
Reporter: Angelo Chen
Priority: Minor
Fix For: 5.0.7
I have this form:
<t:form t:id="myform" t:clientvalidation="false">
<input t:type="textfield" t:id="comment" t:validate="required" />
<input t:type="submit" name="Submit" t:id="Submit" value="Submit" /><br
/>
<t:errors />
</t:form>
The rendered page still contains javascript even when clientvalidate="false",
the only way to totally remove javascript from the page is, no t:validate
parameter, actually those javascript is not being used when
clientvalidation="false", I believe it's redundant, try to disable javascript
in the browser and click submit, it still displays the correct error message
same as when browser's javascript is enabled.
Advantage of completely removing those script is, in a login form, user does
not have to wait for the downloading of those scripts(around 200k, very
noticeable in a slow connection)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]