How to bypass CloudFlare rocket script if wp_enqueue_script is used to add scripts?
问题 I just googled this but didn`t retrieve any specific info. I have such code on a PHP template for WordPress: <?php wp_enqueue_script( 'jquery-carousel', get_template_directory_uri().'/js/jquery.carouFredSel-6.2.1-packed.js', array('jquery'),'',true); ?> And I want to add CloudFlare ignore for Rocketloader data-cfasync="false" just before the 'src' attribute of jquery.carouFredSel-6.2.1-packed.js What can I do? Regards Edit: A big thanks to @Mary for the code. So the solution for this is to