Correctly including scripts into your display templates
When creating display templates it is sometimes required to load additional script and/or CSS files. These files can easily be referenced in a display template with the following functions: $includeScript $includeLanguageScript $includeCSS Now there is a problem when using these $include functions. The problem is that the function loads your referenced files asynchronously.
Read more