WebKit just kept annoying me very much: upon page load it would animate a transition
from the initial , browser-default, value. I had something like
a:link {
color: black;
-webkit-transition: color 1s;
}
but it would fade in from color: blue
! Other properties weren't affected by the FOUC, only the transition
s.
Unfortunately it is super hard to reproduce, I couldn't manage to jsfiddle it. My (admittedly edge) case is setup like so:
- a "dev" version: a bunch of
<script />
s and<style type="text/less" />
s - a production version: scripts and styles H5BP-style concat'ed & minified (first
lessc
ed, respectively)
the FOUC would only show up in situation 2, but that stopped after I inlined the @import
s of some stylesheets with @font-face
s. A workaround, but it
So I guess this must have something to with load times/order?
Anybody ever encountered something like this? (I guess not.)
At the very least, maybe someday somebody will run into this problem, and find this useful.