Is there a way using pure javascript to check if a CSS class is defined, and if it is, then use it, and if not, define a custom style?
Example:
If CSS class demo_class
does not exist:
<div style="text-size:12px">Some content here...</div>
Else:
<div class="demo_class">Some content here...</div>