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
The topic ‘Prevent js from blocking rendering’ is closed to new replies.