Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-34472

Slow rendering/loading times for a job configure page

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Component/s: core
    • Labels:
      None
    • Similar Issues:

      Description

      I have identified two issues related with this behaviour with textarea fields and codemirror

      Too many String Parameters
      In a job with more than 30 String parameters, each parameter include a textarea field with HTML preview. As workaround, you can set the "Markup formatter" to "Plain text" in "Configure global security".

      textarea resized (shell script,...)
      the response times are too long when trying to configure a job with resized textarea fields.
      It seems there is a javascript function that resize textarea fields to be big enough to see the code in it, this function seems like have poor performance, so when you have a lot of textarea fields, it impacts on render page time.

      Additional info:
      Maybe the bug was introduced in https://issues.jenkins-ci.org/browse/JENKINS-25455 over this change https://github.com/jenkinsci/jenkins/commit/e9aeaf11b7171aed80381e8f66c5fb7056960141

      and seems these concrete lines in textarea.js are involved in the bug:

               //refresh CM when there are some layout updates
               function refreshCM() {
                   codemirror.refresh();
               }
               layoutUpdateCallback.add(refreshCM);
      

        Attachments

          Issue Links

            Activity

            dariver Darío Villadiego created issue -
            danielbeck Daniel Beck made changes -
            Field Original Value New Value
            Link This issue duplicates JENKINS-32027 [ JENKINS-32027 ]
            danielbeck Daniel Beck made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 170591 ] JNJira + In-Review [ 198903 ]

              People

              • Assignee:
                Unassigned
                Reporter:
                dariver Darío Villadiego
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: