diff --git a/ui/scripts/plugins.js b/ui/scripts/plugins.js
index 122f4a03491..6a886ba0ae6 100644
--- a/ui/scripts/plugins.js
+++ b/ui/scripts/plugins.js
@@ -20,15 +20,20 @@
}
var loadCSS = function(path) {
- var $link = $('');
+ if (document.createStyleSheet) {
+ // IE-compatible CSS loading
+ document.createStyleSheet(path);
+ } else {
+ var $link = $('');
- $link.attr({
- rel: 'stylesheet',
- type: 'text/css',
- href: path
- });
+ $link.attr({
+ rel: 'stylesheet',
+ type: 'text/css',
+ href: path
+ });
- $('head').append($link);
+ $('html head').append($link);
+ }
};
$.extend(cloudStack.pluginAPI, {