Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1894

Redundant javascripts in the page when clientvalidate="false"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 5.0.6
    • unspecified
    • Core Components
    • None

    Description

      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)

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            angelochen960 Angelo Chen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: