Active
Project:
Webform
Version:
6.3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Jan 2026 at 09:28 UTC
Updated:
16 Jan 2026 at 09:28 UTC
Jump to comment: Most recent
Found while performance auditing Drupal CMS' Byte site template.
If you have a very simple webform, you still get webform.form added on every request, this happens in
WebformSubmissionForm::attachLibraries, this includes webform.states
Additionally this particular form includes the webform.messages library but I haven't yet tracked down whether this is always added or due to the specific form configuration.
Not sure. Ideally webform could dynamically determine whether the js is needed or not. If not, maybe a per-webform setting to suppress JavaScript?
Comments