Posted by dalin on February 1, 2013 at 6:22pm
6 followers
| Project: | jQuery Update |
| Version: | 7.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | major |
| Assigned: | Unassigned |
| Status: | reviewed & tested by the community |
Issue Summary
Both the Google and MS CDNs can be used over HTTP and HTTPS. We should use the appropriate protocol where necessary to ensure best performance and to eliminate browser warnings about mixed HTTP(S) content.
This should also clear up these issues:
#1309276: Microsoft CDN not using https version of file when under ssl
#1596480: Google CDN is only available via SSL
Comments
#1
#2
Looks good to me.
I'll test and commit this later.
Thanks.
#3
This works for me. Thanks!
#4
Thanks, works very well, waiting commit.
#5
Also will be good to change https into block:
<?phpswitch($cdn) {
case 'google':
$cdn = 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui' . $min . '.js';
jquery_update_jqueryui_cdn($cdn, $javascript, $path, $min, $names);
jquery_update_jqueryui_backup($javascript, $path, $min);
break;
case 'microsoft':
$cdn = 'http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.11/jquery-ui' . $min . '.js';
jquery_update_jqueryui_cdn($cdn, $javascript, $path, $min, $names);
jquery_update_jqueryui_backup($javascript, $path, $min);
break;
case 'none':
jquery_update_jqueryui_local($javascript, $path, $min, $names);
break;
}
?>
Updated patch is attached.