defer javascript loading
-
I would like to propose deferring the loading of the compset.js to the footer if that’s possible?
wp_enqueue_script(‘dfrcs_compsets’, DFRCS_URL . ‘js/compsets.js’, array(‘jquery’), DFRCS_VERSION, true);
It’s single line change in actions.php, this would help with performance and is a best practice for loading javascript.
If moving to the footer is not possible, perhaps deferring the javascript instead?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.