Place the js script in footer to avoid rendering
-
Hello
A suggested by google, .js files must not rendering block.
Thus it is better to put js in footer instead of header.
Thus is the plugin just change
wp_register_script(‘rich-reviews’, $pluginDirectory . ‘js/rich-reviews.js’, array(‘jquery’));
by
wp_register_script(‘rich-reviews’, $pluginDirectory . ‘js/rich-reviews.js’, array(‘jquery’), null, true);
This is a suggestion to improve the plugin…
best regards
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Place the js script in footer to avoid rendering’ is closed to new replies.