Skip to content

Instantly share code, notes, and snippets.

@chris-castillo-dev
Created May 17, 2021 20:33
Show Gist options
  • Save chris-castillo-dev/46f4b0fa5bbf8d3b744eecdf45a2ef45 to your computer and use it in GitHub Desktop.
Save chris-castillo-dev/46f4b0fa5bbf8d3b744eecdf45a2ef45 to your computer and use it in GitHub Desktop.
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