Inline Ajax Call
-
Hi there,
I am minifiying jQuery script too, and all it’s working fine.
I need to add this snippet:
if(!wp_script_is('jquery', 'done')) { wp_enqueue_script('jquery'); }
wp_add_inline_script( 'jquery-migrate', "jQuery(document).ready(function(){alert('debug')});" );
Is there a way to add this few lines AFTER the aggregated autoptimize js file?
Thank you
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Inline Ajax Call’ is closed to new replies.