[Plugin: Contact Form 7] consider serving minified and concatenated js
While speed-optimizing my WordPress installs, I notice that the Contact Form 7 plugin could help people getting faster load times with a few very simple changes.
Currently, it adds three files to the footer and header:
styles.cssin the header (887 bytes)
jquery.form.jsin the footer (29kb, not minified)
scripts.jsin the footer (6kb, not minified)
That’s 3 HTTP requests, and around 36kb.
scripts.jswere minified, their file size would be reduced to 13kb and 5kb respectively. Thus, the global load can be cut from 36kb to 19kb – that’s an improvement by 50% !! 😛
Also, is there anything that prevents you from combining
scripts.jsin a single, minified file? That would be one less file request, hence an even faster loading page.
Those kb numbers may not seem that significant – but if more plugins follow the same practice, they will add up and make for a noticeable performance boost…
- The topic ‘[Plugin: Contact Form 7] consider serving minified and concatenated js’ is closed to new replies.