Created
May 17, 2021 20:33
-
-
Save chris-castillo-dev/46f4b0fa5bbf8d3b744eecdf45a2ef45 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function propel_add_cwv_code(){ | |
?> | |
<script> | |
window.addEventListener('load', function(){ | |
document.getElementsByTagName( 'html' )[0].classList.add('loaded'); | |
}); | |
</script> | |
<style id="cwv-css"> | |
html body{ | |
font-family: "Rubik", Calibri, Arial, sans-serif; | |
} | |
html:not(.js-user-action) .js-ui-defer{ display: none!important } | |
</style> | |
<?php | |
} | |
add_action('wp_head','propel_add_cwv_code', 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment