title: Cloudflare's Rocket Loader + Wordpress -> Ignore scripts?
body: <p>I'm trying to make Cloudflare's Rocket Loader work on my WP site. Everything works fine except for the WP Visual Editor. I followed the advice here but it doesn't work:</p>
  
  <p>How do I add custom attributes to javascript tags in Wordpress?</p>
  
  <p>Cloudflare says that in order to make Rocket Loader ignore a javascript file I need to add the data-cfasync="false" tag before my script:</p>
  
  <pre><code>&lt;script data-cfasync="false" src="/javascript.js"&gt;&lt;/script&gt;    
  </code></pre>
  
  <p><a href="https://support.cloudflare.com/entries/22063443--How-can-I-have-Rocket-Loader-ignore-my-script-s-in-Automatic-Mode-" rel="nofollow">https://support.cloudflare.com/entries/22063443--How-can-I-have-Rocket-Loader-ignore-my-script-s-in-Automatic-Mode-</a></p>
  
  <p>Rocket loader doesn't ignore my JS files.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>function rocket_loader_attributes( $url )
  {
  $ignore = array (
  
  'http://www.mysite.com/wp-includes/js/tinymce/tiny_mce.js?ver=349-21274',
  'http://www.mysite.com/wp-admin/js/editor.js?ver=3.4.2'
  
  );
  if ( in_array( $url, $ignore ) )
  { // this will be ignored
  return "$url' data-cfasync='false";
  }
  
  return $url;
  }
  add_filter( 'clean_url', 'rocket_loader_attributes', 11, 1 );
  </code></pre>
  
  <p>What is wrong with my code?</p>
  
  <p>I'm currently using Rocket Loader on Automatic mode.</p>
  
  <p>Can anyone help?</p>
  
  <p>Maybe you can point me in the right direction.</p>
  
  <p>Thank you.</p>