message: Work for the - added Enabled static flag to StylesManager
diff: @@ -463,6 +463,7 @@ export class StylesManager {
  surveyCss.currentType = "standard";
  }
  + if (StylesManager.Enabled) {
  let sheet = StylesManager.findSheet(themeName + themeSelector);
  if (!sheet) {
  sheet = StylesManager.createSheet(themeName + themeSelector);
  @@ -486,8 +487,12 @@ export class StylesManager {
  });
  }
  }
  + }
  +
  + public static Enabled = true;
  constructor() {
  + if (StylesManager.Enabled) {
  this.sheet = StylesManager.findSheet(StylesManager.SurveyJSStylesSheetId);
  if (!this.sheet) {
  this.sheet = StylesManager.createSheet(
  @@ -496,8 +501,10 @@ export class StylesManager {
  this.initializeStyles(this.sheet);
  }
  }
  + }
  public initializeStyles(sheet: CSSStyleSheet) {
  + if (StylesManager.Enabled) {
  Object.keys(StylesManager.Styles).forEach(selector =>
  sheet.insertRule(
  selector + " { " + StylesManager.Styles[selector] + " }",
  @@ -517,3 +524,4 @@ export class StylesManager {
  });
  }
  }
  +}
  