My site uses cloudflare but I really want to enable rocket loader, but if I put it on automatic mode, it messes up my whole site...
So I googled and found This answer which has helped in terms of adding the
data-cfasync="true" or the
data-cfasync="true" tags (see cloudflare wiki for this) to the
script tag. But it ads it AFTER the URL. For rocket loader to use the tag, it needs to be straight after the opening script tag. So basically:
The answer on the page above (here) gives instructions on how to do it, I added it to my
functions.php file and it added the tag on the relevant URL. But it adds the code after the URL and thus is pointless because rocket loader does not see the tag as it is after the url.
I am no good at php and I have been playing with the code for a day to try and get the tag to go before the URL but I can't seem to do it. I am wondering if anyone can modify that code for the
functions.php so this can be accomplished?