Title: Prevent js from blocking rendering
Last modified: August 22, 2016

---

# Prevent js from blocking rendering

 *  [timholz](https://wordpress.org/support/users/timholz/)
 * (@timholz)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/prevent-js-from-blocking-rendering/)
 * Hi
    According to the description on the contact form 7 site, i load the scripts
   only where they are needed. The description says:
 * > Note that wpcf7_enqueue_scripts() and wpcf7_enqueue_styles() must be called
   > before wp_head() is called.
 * Therefore i included the snippet like this:
 *     ```
       <?php
       /*
       Template Name: planX-page
       */
       ?>
   
       <?php /*contact form 7*/
           if ( function_exists( 'wpcf7_enqueue_scripts' ) ) {
               wpcf7_enqueue_scripts();
           }
   
           if ( function_exists( 'wpcf7_enqueue_styles' ) ) {
               wpcf7_enqueue_styles();
           }
       ?>
   
       <?php get_header(); ?>
       ```
   
 * As a result the scripts are now blocking the rendering.
    Is there a way to move
   the scripts, not the styles, to the bottom, so they won’t block the rendering?
 * Thank you for your interest.
    Regards theo
 * [https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)

The topic ‘Prevent js from blocking rendering’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [blocking](https://wordpress.org/support/topic-tag/blocking/)

 * 0 replies
 * 1 participant
 * Last reply from: [timholz](https://wordpress.org/support/users/timholz/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/prevent-js-from-blocking-rendering/)
 * Status: not resolved