There is a solution that does not require javascript or style sheet loading detection.
It seems you can also apply a default style with a built-in style sheet, and then override the default values ββwith the dynamically loaded style sheet. If the new stylesheet does not load, the default value is already loaded and in place, nothing else needs to be done. If a new stylesheet is loaded, it simply overrides the default values ββand shows the new style.
source share