message: racehorse: trigger the 'settingsReady' event sooner
diff: @@ -19,12 +19,6 @@ let settings;
  */
  const COLUMNS_MEDIA_SIZES = new Map();
  -/**
  - * Injecting inject.js in head before doing anything else
  - */
  -
  -sendMessage({ action: 'get_settings' }, (response) => {
  - settings = response.settings;
  const scripts = [
  chrome.extension.getURL('js/inject.js'),
  chrome.extension.getURL('embeds.js'),
  @@ -36,6 +30,13 @@ sendMessage({ action: 'get_settings' }, (response) => {
  document.head.appendChild(el);
  });
  +/**
  + * Injecting inject.js in head before doing anything else
  + */
  +
  +sendMessage({ action: 'get_settings' }, (response) => {
  + settings = response.settings;
  + sendEvent('settingsReady', { settings });
  const getFontFile = format => chrome.extension.getURL(`fonts/tweetdeck-regular-webfont-old.${format}`);
  const style = document.createElement('style');
  @@ -512,7 +513,6 @@ window.addEventListener('resize', setMaxDimensionsOnModalImg);
  // Prepare to know when TD is ready
  on('BTDC_ready', () => {
  tweakClassesFromVisualSettings();
  - sendEvent('settingsReady', { settings });
  // Refresh timestamps once and then set the interval
  refreshTimestamps();
  setInterval(refreshTimestamps, TIMESTAMP_INTERVAL);
  