As Unless uses a decoupled approach to guarantee easy implementation, FOUC is a valid concern. Through a smart script design, we do our best to prevent Flash Of Unstyled Content. We execute the script very fast while the DOM is still loading (but not displaying yet) making it the superior solution to our competitors. This way, we replace content before it even shows up in your visitors' browsers. However, there are a few things that can be done from your side, to further prevent content flashes:

  1. Include our script as the first javascript in the <head> section of your HTML code. This way you can make sure that the content will be loaded before the DOM starts rendering.
  2. Be aware that using Google Tag Manager or another script injection tool, could cause some interference. Tools like GTM work asynchronously which means the Unless script will be triggered after the DOM is already loaded and displayed. 

If content flashes occur on your website, contact us, so we can help you fix it.

Did this answer your question?