WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] [Suggestion] Load header scripts only on contact form pages (4 posts)

  1. ndd
    Member
    Posted 1 year ago #

    Hello,

    A small suggestion for this great plugin so as to improve page load time of pages that don't have any contact form: load the header scripts only if the page contains a contact form.

    I am talking about these lines:

    http://www.example.com/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=3.3.2
    http://www.example.com/wp-content/plugins/contact-form-7/includes/js/jquery.form.min.js?ver=3.23
    http://www.example.com/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=3.3.2

    This is loaded everywhere, for example in my home page even if I don't have any contact form on it. Thus, that would be nice to remove them, and everywhere else there's no contact form.

    Regards,

    NDD (French, sorry for my english level)

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

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

  3. ndd
    Member
    Posted 1 year ago #

    Woops, sorry, I missed it, thank you!

  4. ndd
    Member
    Posted 1 year ago #

    [Marked topic as resolved]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic