02 December 2010 To avoid making fontface dependent on js, just apply a .nojs to your body and remove it via js asap. Then add to your css a rule forcing the fontface: .nojs h2, .nojs p { visibility: visible; } This way you fallback for the FOUT version, but with no js it’s kinda of acceptable, no?
To avoid making fontface dependent on js, just apply a .nojs to your body and remove it via js asap.
Then add to your css a rule forcing the fontface:
.nojs h2, .nojs p { visibility: visible; }
This way you fallback for the FOUT version, but with no js it’s kinda of acceptable, no?