Forms: Only load the styles that are revelant for the specific form #41521
Labels
[Block] Contact Form
Form block (also see Contact Form label)
[Feature] Contact Form
[Focus] Performance
[Plugin] Jetpack
Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/
[Pri] Normal
Triaged
[Type] Enhancement
Changes to an existing feature — removing, adding, or changing parts of it
Impacted plugin
Jetpack
Quick summary
Currently when a user add the Jetpack form on to the page we also load grunion css file.
Which is about 20kb of css and contains the css for all the different "styles" of forms.
This should be reduced in such a way so that we only load the necessary styles.
A good first step would be to only include 1 style per css file.
Steps to reproduce
Load a jetpack form on the frontend.
Notice the large css file.
Site owner impact
Fewer than 20% of the total website/platform users
Severity
Minor
What other impact(s) does this issue have?
No revenue impact
If a workaround is available, please outline it here.
No response
Platform (Simple and/or Atomic)
Simple, Atomic, Self-hosted
The text was updated successfully, but these errors were encountered: