Answer the question
In order to leave comments, you need to log in
How to connect asynchronously a file with October CMS styles?
PageSpeed Insights asks "Remove render-blocking resources"
css/home.css 12 KB 180 ms
I read on the Internet that you need to include a css file asynchronously, using this method:
$(document).ready(function() {
$("head").append("<link rel='stylesheet' type='text/css' href='/styles.css' />");
})
[viewBag]
snippetCode = "head-slot" == {% component 'bronxSEOWidget' %}
<link rel="stylesheet" href="{{ 'assets/css/home.css'|theme }}" type="text/css" media="only screen" />
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question