Prevent FOUC for CSS - e.g. for CSS3 transitions.
- CSS transitions
- All CSS transitions overridden to
none
until windowload
event. Inspired by CSS-Tricks.
- All CSS transitions overridden to
<!doctype html>
<html class="css-preload">
<head>
<link href="css-preload.css" rel="stylesheet" type="text/css" />
<script src="css-preload.js" type="text/javascript"></script>
</head>
<body>
...
</body>
</html>