Very useful bit of code for loading in css after the main page has loaded. this will increases the load speed of the site and decrease the time to first paint, both of which google likes very much
function load_page_css(css_file_name) { var element = document.createElement("link"); element.rel = "stylesheet"; element.href = css_file_name; element.type = 'text/css'; var current_element = document.getElementsByTagName("link")[0]; current_element.parentNode.insertBefore( element, current_element); }