obdurodon
obdurodon

Reputation: 71

comparing strategies to avoid flash of unstyled content (fouc)

I need to control CSS with a cookie:

My first strategy was to set an onload handler on the <body> element. I've seen discussion of at least two other approaches:

I'd be grateful for advice about choosing a strategy that is easy to code and maintain and that provides the functionality I need in the browsers I need to support.

Upvotes: 0

Views: 747

Answers (1)

Related Questions