title: libGDX / html game shows black screen when reloading in Firefox
body: <p>I've made some class project with libGDX, is a desktop simulator incrusted in a website.</p>
  <p>Despite libGDX / Gradle / GWT compiling for html5 could be so tricky sometimes, at the end everything works as expected... except in firefox, don't know why, sometimes when reloading the game/page it turns into a black screen that is only solved by cleaning cookies (and also deleting your game saved , as it is saved in Preferences). This never happens in Edge or Chrome..</p>
  <p>What could be causing that? is something about saving data methods? Or more related to OpenGL/ Js environment?</p>
  <p>Here is the game: <a href="https://devxmachina.000webhostapp.com/" rel="nofollow noreferrer">https://devxmachina.000webhostapp.com/</a></p>
  <p>Here full code (I know is a mess just testing):<a href="https://github.com/VladScv/DxM_Game_v3" rel="nofollow noreferrer">https://github.com/VladScv/DxM_Game_v3</a></p>
  <p>Here my save/load data methods:</p>
  <pre><code>  private void getSavedData() {
  
      if (preferences.contains(&quot;GameEvent_Data&quot;)) {
  
          savedData = true;
          currentMoney = preferences.getInteger(&quot;currentMoney&quot;);
          currentDecade = DxM_Game.EventDecade.valueOf(preferences.getString(&quot;currentDecade&quot;));
          decadeProgress = preferences.getFloat(&quot;decadeProgress&quot;);
          currentReputation = preferences.getInteger(&quot;currentReputation&quot;);
          userName = preferences.getString(&quot;userName&quot;);
          testFinalResults = preferences.getString(&quot;testResults&quot;);
          testAnswer = testFinalResults.split(&quot;\n&quot;);
          sound = preferences.getBoolean(&quot;sound&quot;);
          debugMode = preferences.getBoolean(&quot;debug&quot;);
  
      } else {
  
          savedData = false;
          currentMoney = 0;
          currentDecade = DxM_Game.EventDecade.SEVENTIES;
          decadeProgress = 0.f;
          currentReputation = 100;
          testFinalResults=&quot;&quot;;
          userName = &quot;&quot;;
      }
  }
  
    public void saveAllData() {
  
      preferences.putString(&quot;GameEvent_Data&quot;, eventManager.toString());
      preferences.putInteger(&quot;currentMoney&quot;, currentMoney);
      preferences.putString(&quot;currentDecade&quot;, currentDecade.name());
      preferences.putFloat(&quot;decadeProgress&quot;, decadeProgress);
      preferences.putInteger(&quot;currentReputation&quot;, currentReputation);
      preferences.putString(&quot;userName&quot;, userName);
      preferences.putString(&quot;testResults&quot;, testFinalResults);
      preferences.putBoolean(&quot;sound&quot;, sound);
      preferences.putBoolean(&quot;debug&quot;, debugMode);
      eventManager.save_resultsArray(preferences);
      preferences.flush();
      saveGame = false;
  
  }
  </code></pre>