WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Contact Form 7] consider serving minified and concatenated js

[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.css in the header (887 bytes)
    jquery.form.js in the footer (29kb, not minified)
    scripts.js in the footer (6kb, not minified)

    That’s 3 HTTP requests, and around 36kb.

    If jquery.form.js and scripts.js were 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 jquery.form.js and scripts.js in 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…

    http://wordpress.org/extend/plugins/contact-form-7/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Contact Form 7] consider serving minified and concatenated js’ is closed to new replies.