Support » Plugins and Hacks » Contact Form 7 » What we could do to disable styles.css if no Contact Form

  • Resolved App Shah

    (@crunchify)


    While doing my page audit I came to know that styles.css loads on all pages.

    I believe, we only need this styles.css only when page has contact form like http://crunchify.com/contact/

    Google Audit shows this message:
    styles.css: 100% is not used by the current page.
    div.wpcf7
    div.wpcf7-response-output
    div.wpcf7 .screen-reader-response
    div.wpcf7-mail-sent-ok
    div.wpcf7-mail-sent-ng
    div.wpcf7-spam-blocked
    div.wpcf7-validation-errors
    span.wpcf7-form-control-wrap
    span.wpcf7-not-valid-tip
    .use-floating-validation-tip span.wpcf7-not-valid-tip
    span.wpcf7-list-item
    .wpcf7-display-none
    div.wpcf7 img.ajax-loader
    div.wpcf7 div.ajax-error
    div.wpcf7 .placeheld

    Is there any recommendation you could give? It’s not impacting page loading at all but still what should we do to just disable if not required. It’s unnecessary one more request 🙂

    https://wordpress.org/plugins/contact-form-7/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘What we could do to disable styles.css if no Contact Form’ is closed to new replies.