Events javascript loaded in header instead of footer
-
Hello,
Thank you for this great plugin.
I would like to know if there is a reason behind loading the JS scripts in the header instead of the footer.
For example:
wp_enqueue_script("gtm4wp-outbound-click-tracker", $gtp4wp_plugin_url."js/gtm4wp-outbound-click-tracker.js", array("jquery"), GTM4WP_VERSION, $in_footer);
$in_footer default is false (in header).
I know there is a filter that I can use to change $in_footer.
Nowadays, scripts are loaded in the footer to defer loading.
So is there a reason?THank you very much.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Events javascript loaded in header instead of footer’ is closed to new replies.