Hide or Override "Loading..." During Feature Flag Initialization
R
Reliable Butterfly
I would love to see a way to hide or override the "Loading..." that is appended to the DOM during Feature Flag initialization (React library). We have our own loading screen, so the plain <p>Loading...</p> is quite out of place in our UI when it shows up and requires unnecessary CSS overrides to hide it from view.
I honestly believe that the loading message should be hidden from the UI by default, but I would settle for being able to pass in a component that would show up instead.
Currently overriding it like this, which feels a bit awkward:
useEffect(() => {
for (const p of document.querySelectorAll('p')) {
if (p.textContent?.includes('Loading')) {
p.classList.add('hidden');
}
}
}, []);
Log In