open-election-compass/client

Fix FOUC

tillsanders opened this issue · 2 comments

Fix flash of unstyled content and implement two modes:

  • button / modal mode
  • no button / instant full viewport mode

Loading the JSON from the DOM child node is simple to use, but FOUC is ugly. Need to switch to loading from URL.

Didn't add a button mode, but I'm unsure if this is really a great idea anyways. FOUC is fixed though and the configuration can now be loaded by DOM reference or URL.