<commit_before>
var themes = [
  "faded",
  "grayscale",
  "sepia",
  "wide-blur",
  "overexposed",
  "flip-hue",
  "red",
  "blue",
  "none"
];

function defaultTheme() {
  return "faded";
}

if (!window.isSecureContext) {
  chrome.storage.local.get({
    theme: "default"
  }, function(items) {
    var theme = items.theme;
    if (themes.indexOf(theme) === -1) {
      theme = defaultTheme();
    }

    document.body.classList.add("ugly-http-theme-" + theme);
  });
}
setTimeout(function() {
document.body.classList.add("ugly-http-status-loaded");
}, 10);<commit_msg>Add ugly-http-status-loaded class synchronously. Fixes #15.<commit_after>
var themes = [
  "faded",
  "grayscale",
  "sepia",
  "wide-blur",
  "overexposed",
  "flip-hue",
  "red",
  "blue",
  "none"
];

function defaultTheme() {
  return "faded";
}

if (!window.isSecureContext) {
  chrome.storage.local.get({
    theme: "default"
  }, function(items) {
    var theme = items.theme;
    if (themes.indexOf(theme) === -1) {
      theme = defaultTheme();
    }

    document.body.classList.add("ugly-http-theme-" + theme);
  });
}

document.body.classList.add("ugly-http-status-loaded");
{'fraction_non_alphanumeric': 0.19360414866032843, 'fraction_numerical': 0.005185825410544511, 'mean_word_length': 3.3863636363636362, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1712678', 'n_tokens_mistral': 447, 'n_tokens_neox': 433, 'n_words': 72}