Hi, great idea for a plugin!
I was wondering though, would it not be best to remove the protocol from the path to avoid mixed content warnings? e.g.:
wp_enqueue_script('jquery', 'https://cdnjs.cloudflare.com/ajax/libs/jquery/'.$jquery_ver.'/jquery.min.js', false, null,true);
Changed to:
wp_enqueue_script('jquery', '//cdnjs.cloudflare.com/ajax/libs/jquery/'.$jquery_ver.'/jquery.min.js', false, null,true);
I might be wrong, but just thought I would ask ??
Phil
]]>Plugin is good. It works… usually.
I noticed occasional 403 error in speed test.
The cause appears to be an extra quotation mark (jquery.min.js”) in:
wp_enqueue_script(‘jquery’, ‘https://cdnjs.cloudflare.com/ajax/libs/jquery/’.$jquery_ver.’/jquery.min.js”‘, false, null,true);
I removed it haven’t see anymore errors.
]]>Is there a local fall back if cloud flare is down
I also use keycdn
Can it work with it
Thanks
]]>