WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Style.css is the only file that cannot be compressed - why? (3 posts)

  1. utnalove
    Member
    Posted 4 months ago #

    Hello, my server is using compression.
    In pagespeed insights all the files and fine and well compressed. Theme files and other plugins files.

    The only file that cannot be compressed is contact-form-7/includes/css/styles.css?ver=3.7.2

    Question 1:
    Any idea why this is happening and how to resolve this issue?

    Question 2:
    Why you are loading this file also in places where there is no contact form? Isn't it possible to get this file only if there is a shortcode calling the contact form?

    Thanks

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

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 4 months ago #

    > Question 1

    I don't know. Ask your server admin.

    > Question 2

    See Loading JavaScript and Stylesheet Only When it is Necessary.

  3. utnalove
    Member
    Posted 4 months ago #

    The tutorial says:

    suppose that you have a template file for the “Contact” page named ‘contact.php’

    What if there is no template, but it's a normal WordPress Page?

Reply

You must log in to post.

About this Plugin

About this Topic