Prevent running transitions on load (http://www.pencilscoop.com/2014/03/prevent-css-transitions-running-on-page-load/)
This commit is contained in:
@@ -39,5 +39,12 @@ if ( in_array( 'reCAPTCHA', $dependencies ) ) { ?>
|
||||
<script src='https://www.google.com/recaptcha/api.js'></script>
|
||||
<?php } ?>
|
||||
|
||||
<script>
|
||||
window.addEventListener('load',function load() {
|
||||
window.removeEventListener('load', load, false);
|
||||
document.body.classList.remove('load');
|
||||
},false);
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user