Support » Plugin: Contact Form 7 » scripts.js: Move $(..) to bottom;

  • David Sota

    (@davidsotaads)


    Is there a particular reason why the $(…) block is at the top?
    On a website I’m developing at work, I’m loading files asynchronously with another library and when the scripts.js file is added, the DOM is already loaded so the $(…) block seems to be called very early and the $.wpcf7SupportHtml5() causes an error of unsupported method. Moving it to the bottom (after the declaration of said function) solved my problem.

    Kind regards,
    David

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

  • The topic ‘scripts.js: Move $(..) to bottom;’ is closed to new replies.