Webform with 150+ fields taking too long to render

Created on 3 October 2017, over 7 years ago
Updated 12 September 2023, almost 2 years ago

Problem/issue

- webform with ~150+ fields
- some of the fields are custom composite elements with the option to add more.
- adding new rows for a composite is very slow, ~3seconds. It looks like webform is re-rendering the whole form for the Ajax request so it takes 3 seconds to add the new row.
- it takes 3 seconds to render the page but once the page was loaded the js re-renders fairly fast.
- I tested composite elements on another form, containing only a few fields, and it did work well.

any suggestions on how to improve performance when a form has many fields?

Proposal & Solution

- Write a patch that will basically perform a pager when there are more than a specific number of elements in the webform.
- The settings general page:
- The elements build page form:
- Be sure that the config will be a general one per all webforms.

πŸ“Œ Task
Status

Needs review

Version

6.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States uceap-web

Live updates comments and jobs are added and updated live.
  • Performance

    It affects performance. It is often combined with the Needs profiling tag.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024