Hi! I tried using autoptimize to optimize wordpress css and jquery but im having conflict with the placement of the javascripts.
The optimized javascript is automatically placed under the footer. but a gravity forms hook is inserting the custom script above the javascript. is there a way to the custom script made by gravity forms under the javascript defined by autoptimize?
Convert This:
<script type='text/javascript'>Gravity Forms generated custom script</script>
<script type="text/javascript" src="http://static2.depotfashion.com.ph/wp-content/cache/autoptimize/autoptimize_59721717d6aa7f93f16d8a326e5f672d.php"></script>
To:
<script type="text/javascript" src="http://static2.depotfashion.com.ph/wp-content/cache/autoptimize/autoptimize_59721717d6aa7f93f16d8a326e5f672d.php"></script>
<script type='text/javascript'>Gravity Forms generated custom script</script>
Is there a hook to do this so it wont conflict with the javascript and to avoid having undefined javascript error?