Loading CSS from your display templates
A while ago I wrote an article about how to correctly include scripts in your Display Templates. As the **$include** functions load files asynchronously on the page, it could happen that the JavaScript file is not loaded yet when you need it. > **Info**: here is the link to the article - [correctly including scripts into your display templates](https://www.eliostruyf.com/correctly-including-scripts-display-templates/). So for JavaScript