Add data-cfasync=”false” attribute to the minify javascript generated by W3Total
-
Hi I am using “w3 total” minify javascript setting, so it combines and generates a single javascript file in head
https://skcamera.com/wp-content/cache/minify/10bf8.default.include.9c70f4.js
and I also use cloudflare “rocket loader functionality” but I want cloudflare rocket loader to ignore this head specific script. For this cloudflare recommends to adddata-cfasync="false"
before the ‘src’ attribute of javascript. reference article here
But I don’t know how to add this attribute bcoz the javascript is plugin generated and I can not find it in my templates.
Is there some code that I can add to my function.php file to automatically add this attribute to javascript file before other javascript file loads.The page I need help with: [log in to see the link]
- The topic ‘Add data-cfasync=”false” attribute to the minify javascript generated by W3Total’ is closed to new replies.